diff options
author | ThibG <thib@sitedethib.com> | 2019-06-16 21:25:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-16 21:25:37 +0200 |
commit | 118701b548556a8894ea94837d120c3374c5e3a6 (patch) | |
tree | 103e4dbb4ef5a831e34a523aa959d62417827f97 /nanobox/nginx-stream.conf.erb | |
parent | d3aaacb6d48ab815a79cc4feb6b2c9a1ffc41717 (diff) | |
parent | 5717f75340dacc4d08fa1e8698af7f4413c20993 (diff) |
Merge pull request #1121 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'nanobox/nginx-stream.conf.erb')
-rw-r--r-- | nanobox/nginx-stream.conf.erb | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/nanobox/nginx-stream.conf.erb b/nanobox/nginx-stream.conf.erb index 12bcc8ca5..4ea6e30fc 100644 --- a/nanobox/nginx-stream.conf.erb +++ b/nanobox/nginx-stream.conf.erb @@ -10,10 +10,13 @@ http { sendfile on; gzip on; - gzip_http_version 1.1; + gzip_disable "MSIE [1-6]\."; + gzip_vary on; gzip_proxied any; + gzip_comp_level 6; + gzip_buffers 16 8k; gzip_min_length 500; - gzip_disable "MSIE [1-6]\."; + gzip_http_version 1.1; gzip_types text/plain text/xml text/javascript text/css text/comma-separated-values application/xml+rss application/xml application/x-javascript application/json application/javascript application/atom+xml; # Proxy upstream to the node process @@ -31,11 +34,13 @@ http { # Listen on port 8080 listen 8080; - add_header Strict-Transport-Security "max-age=31536000"; - # add_header Content-Security-Policy "style-src 'self' 'unsafe-inline'; script-src 'self'; object-src 'self'; img-src data: https:; media-src data: https:; connect-src 'self' wss://<%= ENV["LOCAL_DOMAIN"] %>; upgrade-insecure-requests"; + keepalive_timeout 70; + client_max_body_size 80M; root /app/public; + add_header Strict-Transport-Security "max-age=31536000"; + location / { try_files $uri @node; } @@ -43,6 +48,10 @@ http { # Proxy connections to node location @node { 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 X-Forwarded-Proto https; + proxy_set_header Proxy ""; proxy_pass http://node; proxy_buffering off; |