2018-08-31 17:21:46 +00:00
|
|
|
# use this one if you put the nginx container behind another proxy
|
|
|
|
# you will have to set some headers on this proxy as well to ensure
|
|
|
|
# everything works correctly, you can use the ones from the funkwhale_proxy.conf file
|
2018-12-10 15:00:33 +00:00
|
|
|
# at https://dev.funkwhale.audio/funkwhale/funkwhale/blob/develop/deploy/funkwhale_proxy.conf
|
2018-08-31 17:21:46 +00:00
|
|
|
# your proxy will also need to support websockets
|
|
|
|
|
2019-06-10 13:28:09 +00:00
|
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2018-08-31 17:21:46 +00:00
|
|
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
|
|
|
proxy_set_header X-Forwarded-Host $http_x_forwarded_host;
|
|
|
|
proxy_set_header X-Forwarded-Port $http_x_forwarded_port;
|
|
|
|
proxy_redirect off;
|
|
|
|
|
|
|
|
# websocket support
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection $connection_upgrade;
|