Reverse proxy configuration - azlux/botamusique GitHub Wiki
Important part to check :
include proxy_params;
default snippet to set X-Real-IP and X-Forwarded-For headers.X-Script-Name
header because I use sub-folder in my config.- In the bot config
[webinterface]
,is_web_proxified
must beTrue
to make the bot using the headers.
Nginx config exemple:
server mumble.azlux.fr
[...]
location /xana {
proxy_pass http://10.0.3.2:8181;
include snippets/proxy;
proxy_set_header X-Script-Name /xana;
}
location /glados {
proxy_pass http://10.0.3.2:8182;
include snippets/proxy;
proxy_set_header X-Script-Name /glados;
}
with /etc/nginx/snippets/proxy is
include proxy_params;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
port_in_redirect off;