This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 79
Reverse proxy configuration
azlux edited this page May 12, 2020
·
1 revision
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;