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

Fix web server

This commit is contained in:
Salamandar 2024-02-05 14:44:20 +01:00
parent 0dea66feb0
commit 0dca6a2d18
2 changed files with 4 additions and 4 deletions

View file

@ -61,7 +61,7 @@ port = __PORT__
# Serve static files from a web root folder.
# Optional, but handy for serving the Kiwi IRC client if no other webserver is available
[fileserving]
enabled = true
enabled = false
webroot = __INSTALL_DIR__/www/
[transports]

View file

@ -1,15 +1,15 @@
location / {
index index.html;
root /usr/share/kiwiirc/;
root __INSTALL_DIR/www/;
}
location /webirc/ {
# 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;