mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 13:56:17 +00:00
1
Reverse proxy configuration
azlux edited this page 2020-05-12 14:37:54 +02:00
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;