2022-02-03 19:36:35 +01:00
|
|
|
location / {
|
2022-02-03 19:18:24 +01:00
|
|
|
index index.html;
|
2024-02-05 15:08:20 +01:00
|
|
|
root __INSTALL_DIR__/www/;
|
2022-02-03 19:18:24 +01:00
|
|
|
}
|
2014-08-27 23:42:00 +02:00
|
|
|
|
2022-02-03 19:36:35 +01:00
|
|
|
location /webirc/ {
|
2022-02-03 19:18:24 +01:00
|
|
|
# Forward incoming requests to local webircgateway socket
|
|
|
|
proxy_pass http://127.0.0.1:__PORT__/webirc/;
|
2024-02-05 14:44:20 +01:00
|
|
|
|
2022-02-03 19:18:24 +01:00
|
|
|
# Set http version and headers
|
|
|
|
proxy_http_version 1.1;
|
2024-02-05 16:41:15 +01:00
|
|
|
proxy_redirect default;
|
2024-02-05 14:44:20 +01:00
|
|
|
|
2022-02-03 19:18:24 +01:00
|
|
|
# Add X-Forwarded-* headers
|
|
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
2024-02-05 16:41:15 +01:00
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
2022-02-03 19:18:24 +01:00
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2014-08-27 23:42:00 +02:00
|
|
|
|
2022-02-03 19:18:24 +01:00
|
|
|
# Allow upgrades to websockets
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2014-08-27 23:42:00 +02:00
|
|
|
}
|