New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow The Lounge to be proxied behind a /path/ url #27
Conversation
contains three small changes to use relative urls instead of absolute rooted at / * favicons in index.html * badge and pop sound in lounge.js * the url for the socket.io endpoint Typical use with nginx: location /path/ { proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_pass http://localhost:9000/; } those trailing / are important.
As mentioned on the IRC channel, I have concerns about this change. (Checking these as per @JocelynDelalande's tests) |
@astorije
|
|
But I'm confused @gdamjan, wasn't that the purpose of your PR, to run The Lounge behind a |
huh. ok. I'm not sure what you were asking, but the very important difference is |
Right, I see, sorry. I'm ok with the distinction, and wherever this gets documented or used, I'd suggest to add a redirect from |
with the above nginx rule, it'll send a redirect automatically. |
Good to know, thanks! |
and to be extra clear... both of the trailing slashes are important, in location and in proxy_pass. |
Adding |
Tested the 3 scenarios and read patch, it's ok 👍 :) |
Letting @YaManicKill give his second review to this one as he self-assigned #3 at the time. |
So, on the basis of @JocelynDelalande having tested this, and it looks good (and solves the issue we had last time we merged it) I'll give my 👍 and merge. |
Allow The Lounge to be proxied behind a /path/ url
Great, really nice addition! I'll publish to npm either today or tomorrow! |
Sorry, I'll get the hang of this soon. This is the biggest project I've maintained :-P |
Add message for users that join #shout-irc
contains three small changes to use relative urls instead of absolute rooted at /
Typical use with nginx:
those trailing / are important.