From e25f3c4263d33b12742dfb9368a6efbd34c55c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 5 Feb 2024 14:44:20 +0100 Subject: [PATCH] Fix web server --- conf/config.conf | 2 +- conf/nginx.conf | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/config.conf b/conf/config.conf index 41f9af5..266d000 100644 --- a/conf/config.conf +++ b/conf/config.conf @@ -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] diff --git a/conf/nginx.conf b/conf/nginx.conf index 3512ed3..8447990 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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;