fix annoying icingaweb redirect to empty page

This commit is contained in:
CroneKorkN 2025-07-13 14:04:50 +02:00
parent 849c305d7d
commit 983ad1b1ae
Signed by: cronekorkn
SSH key fingerprint: SHA256:v0410ZKfuO1QHdgKBsdQNF64xmTxOF8osF1LIqwTcVw
3 changed files with 9 additions and 8 deletions

View file

@ -179,6 +179,7 @@ def nginx(metadata):
'context': {
'php_version': metadata.get('php/version'),
},
'check_path': '/icingaweb2/index.php',
},
},
},

View file

@ -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;
}
}

View file

@ -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: