-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Enabling "Force SSL" + nginx reverse proxy makes the cyclic forwarding error #2744
Comments
This might have something to do with what env variables are beeing passed down from nginx site config towards RocketChat. What is your nginx site/upstream configuration? |
I have used official manual to deploy the configuration - https://www.digitalocean.com/community/tutorials/how-to-install-configure-and-deploy-rocket-chat-on-ubuntu-14-04, but I make 80 the default port for chat :
|
PS: I have temporary changed the port of chat to 3000 (+backend and proxy_pass parameters) with the same results - ERR_TOO_MANY_REDIRECTS |
@zxweed: what happens if you set the set IP in |
@k0nsl, thank you, I have put the IP-address in the line
and the problem was solved. Can you request the manual (https://github.com/RocketChat/Rocket.Chat/wiki/Run-Rocket.Chat-behind-a-SSL-Reverse-Proxy) change? There is the example with hostname, not the digital IP-address: location / { |
And the last question is - how can I disable the "Force SSL" setting in database without dropping of it? |
A small external independent helper utility might help set generic database entries in the future |
"Force SSL" should never be used with reverse proxy. If you have a reverse proxy, you should do the redirect THERE. We only added the option to do "Force SSL" at the application level, for deployments like Heroku, that does not allow you to configure the redirect at the reverse proxy. @rodrigok can you please add a description bellow the field on the admin panel? |
In the configuration example you gave it shows you're proxying to a IP, not hostname. |
Your Rocket.Chat version: 0.24.0
After enabling "Force SSL" I cannot login to the chat. How can I disable this setting in database or config file? I have not found this settings in the rocketchat_settings collection
The text was updated successfully, but these errors were encountered: