Skip to content

Commit 41c44b4

Browse files
committed
Re-add https rewriting
This was not intended to be deleted
1 parent bdb365d commit 41c44b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/nginx.conf.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ http {
5656
proxy_set_header Host $http_host;
5757
proxy_set_header X-Real-Ip $remote_addr;
5858
proxy_redirect off;
59+
if ($http_x_forwarded_proto != 'https') {
60+
rewrite ^ https://$host$request_uri? permanent;
61+
}
5962

6063
location / {
6164
proxy_pass http://app_server;

0 commit comments

Comments
 (0)