diff --git a/conf/nginx.conf b/conf/nginx.conf index e0f98f2..462eb67 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -3,6 +3,11 @@ events { } http { + map $scheme $fastcgi_https { + default off; + https on; + } + upstream was { server maru-egg:8080; } @@ -34,6 +39,7 @@ http { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header HTTPS $fastcgi_https; } } -} +} \ No newline at end of file