diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 62fabf4a207..fba0c67ca30 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -13,7 +13,7 @@ server { gzip_types application/json text/css application/x-javascript; server_name meta.discourse.org; - + sendfile on; keepalive_timeout 65; @@ -36,7 +36,9 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $http_host; + # If the file exists as a static file serve it directly without # running all the other rewite tests on it @@ -48,7 +50,7 @@ server { proxy_pass http://discourse; break; } - + } }