Moved commen nginx configuration in a dedicated snippet
This commit is contained in:
parent
eef2ff3f9a
commit
1955005a4f
3 changed files with 18 additions and 17 deletions
13
deploy/funkwhale_proxy.conf
Normal file
13
deploy/funkwhale_proxy.conf
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue