Nginx "funkwhale_proxy.conf" - Pass on the remote_ip and not having to set set_real_ip_from 172.17.0.0/16
The provided "funkwhale_proxy.conf" sets the set_real_ip_from 172.17.0.0/16.
This is not changeable yet because it is not substituted by an environment variable.
To get around this circumstance I use this config on my Funkwhale instance (HA-Proxy -> Docker (Multicontainer) -> Funkwhale):
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 $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;
This is tested and works as expected.
I am not running the instance in the standard suggested network "172.17.0.0/16".
Whit the above mentioned configuration the instance works I think in any chosen, private network.
Pls correct me if I'm wrong.