Moved commen nginx configuration in a dedicated snippet

This commit is contained in:
Eliot Berriot 2018-03-04 16:58:37 +01:00
commit 1955005a4f
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 18 additions and 17 deletions

View file

@ -0,0 +1,13 @@
# global proxy conf
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 $scheme;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Port $server_port;
proxy_redirect off;
# websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;