1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwiirc_ynh.git synced 2024-09-03 19:35:59 +02:00
kiwiirc_ynh/conf/nginx.conf

23 lines
660 B
Nginx Configuration File
Raw Normal View History

2022-02-03 19:34:23 +01:00
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
2022-02-03 19:18:24 +01:00
index index.html;
root /usr/share/kiwiirc/;
}
2014-08-27 23:42:00 +02:00
2022-02-03 19:34:23 +01:00
location __PATH__/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/;
# Set http version and headers
proxy_http_version 1.1;
# Add X-Forwarded-* headers
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
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
}