From 983ad1b1ae7b3742353c643eafe6cfb29ecc1af5 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Sun, 13 Jul 2025 14:04:50 +0200 Subject: [PATCH] fix annoying icingaweb redirect to empty page --- bundles/icingaweb2/metadata.py | 1 + data/icingaweb2/vhost.conf | 14 +++++++------- nodes/home.homeassistant.py | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bundles/icingaweb2/metadata.py b/bundles/icingaweb2/metadata.py index de3be18..96f8520 100644 --- a/bundles/icingaweb2/metadata.py +++ b/bundles/icingaweb2/metadata.py @@ -179,6 +179,7 @@ def nginx(metadata): 'context': { 'php_version': metadata.get('php/version'), }, + 'check_path': '/icingaweb2/index.php', }, }, }, diff --git a/data/icingaweb2/vhost.conf b/data/icingaweb2/vhost.conf index 26bc5e6..326c981 100644 --- a/data/icingaweb2/vhost.conf +++ b/data/icingaweb2/vhost.conf @@ -10,13 +10,8 @@ server { ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem; ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem; - location /api/ { - proxy_pass https://127.0.0.1:5665/; - proxy_http_version 1.1; - } - - location / { - return 302 /icingaweb2/index.php; + location = / { + return 302 /icingaweb2/; } location ~ ^/icingaweb2/index\.php(.*)$ { @@ -33,4 +28,9 @@ server { index index.php; try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args; } + + location /api/ { + proxy_pass https://127.0.0.1:5665/; + proxy_http_version 1.1; + } } diff --git a/nodes/home.homeassistant.py b/nodes/home.homeassistant.py index 81f3ad8..61a2055 100644 --- a/nodes/home.homeassistant.py +++ b/nodes/home.homeassistant.py @@ -25,7 +25,7 @@ # - cant use the letsencrypt addon, because it doesnt suppeort supplying a different zone (which would be acme.sublimity.de) # Advanced SSH & Web Terminal: -# + # username: root # password: "" # authorized_keys: