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:
parent
0dea66feb0
commit
0dca6a2d18
2 changed files with 4 additions and 4 deletions
|
@ -61,7 +61,7 @@ port = __PORT__
|
||||||
# Serve static files from a web root folder.
|
# Serve static files from a web root folder.
|
||||||
# Optional, but handy for serving the Kiwi IRC client if no other webserver is available
|
# Optional, but handy for serving the Kiwi IRC client if no other webserver is available
|
||||||
[fileserving]
|
[fileserving]
|
||||||
enabled = true
|
enabled = false
|
||||||
webroot = __INSTALL_DIR__/www/
|
webroot = __INSTALL_DIR__/www/
|
||||||
|
|
||||||
[transports]
|
[transports]
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
location / {
|
location / {
|
||||||
index index.html;
|
index index.html;
|
||||||
root /usr/share/kiwiirc/;
|
root __INSTALL_DIR/www/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /webirc/ {
|
location /webirc/ {
|
||||||
# Forward incoming requests to local webircgateway socket
|
# Forward incoming requests to local webircgateway socket
|
||||||
proxy_pass http://127.0.0.1:__PORT__/webirc/;
|
proxy_pass http://127.0.0.1:__PORT__/webirc/;
|
||||||
|
|
||||||
# Set http version and headers
|
# Set http version and headers
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
# Add X-Forwarded-* headers
|
# Add X-Forwarded-* headers
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
Loading…
Reference in a new issue