Merge branch '834-real-ip' into 'develop'

Fix #834: Simplified embedded docker reverse proxy IP configuration

Closes #834

See merge request funkwhale/funkwhale!779
This commit is contained in:
Eliot Berriot 2019-06-11 09:58:21 +02:00
commit f56c9aa08d
2 changed files with 3 additions and 3 deletions

View File

@ -0,0 +1 @@
Simplified embedded docker reverse proxy IP configuration (#834)

View File

@ -4,10 +4,9 @@
# at https://dev.funkwhale.audio/funkwhale/funkwhale/blob/develop/deploy/funkwhale_proxy.conf
# your proxy will also need to support websockets
real_ip_header X-Forwarded-For;
set_real_ip_from 172.17.0.0/16;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_x_forwarded_host;
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;