You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you run your application behind a proxy (e.g. Nginx) you may need to do some configuration on that side. If you don't you may experience an infinite redirect loop.
80
+
81
+
The reason this happens is that Rack::SslEnforcer can't detect if you are running SSL or not. The solution is to have your front-end server send extra headers for Rack::SslEnforcer to identify the request protocol.
82
+
83
+
=== Nginx
84
+
85
+
In the `location` block for your app's SSL configuration, include the following proxy header configuration:
86
+
87
+
proxy_set_header X-Forwarded-Proto https;
88
+
89
+
This makes sure that Rack::SslEnforcer knows it's being accessed over SSL. Just restart Nginx for these changes to take effect.
90
+
91
+
77
92
== TODO
78
93
79
94
* Add configuration option to specify local http / https ports
0 commit comments