diff options
author | Eric Wong <e@80x24.org> | 2018-10-18 20:55:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-10-18 21:00:37 +0000 |
commit | 981f561a726bb4307d01e4a09a308edba8d69fe3 (patch) | |
tree | c5ceff1a2a5f60232c0b4fb980adf0593bef4dd5 /examples/nginx.conf | |
parent | 5985dd50a9bd72388dd5ca4886d6dffc083f87d4 (diff) | |
download | unicorn-981f561a726bb4307d01e4a09a308edba8d69fe3.tar.gz |
Latency from redirects is painful, and HTTPS can protect privacy in some cases.
Diffstat (limited to 'examples/nginx.conf')
-rw-r--r-- | examples/nginx.conf | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/nginx.conf b/examples/nginx.conf index e25712f..b6b69c1 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -56,7 +56,8 @@ http { # to configure it all in one place here for static files and also # to disable gzip for clients who don't get gzip/deflate right. # There are other gzip settings that may be needed used to deal with - # bad clients out there, see http://wiki.nginx.org/NginxHttpGzipModule + # bad clients out there, see + # https://nginx.org/en/docs/http/ngx_http_gzip_module.html gzip on; gzip_http_version 1.0; gzip_proxied any; @@ -117,7 +118,7 @@ http { location @app { # an HTTP header important enough to have its own Wikipedia entry: - # http://en.wikipedia.org/wiki/X-Forwarded-For + # https://en.wikipedia.org/wiki/X-Forwarded-For proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # enable this if you forward HTTPS traffic to unicorn, |