fix annoying icingaweb redirect to empty page
This commit is contained in:
parent
849c305d7d
commit
983ad1b1ae
3 changed files with 9 additions and 8 deletions
|
@ -179,6 +179,7 @@ def nginx(metadata):
|
||||||
'context': {
|
'context': {
|
||||||
'php_version': metadata.get('php/version'),
|
'php_version': metadata.get('php/version'),
|
||||||
},
|
},
|
||||||
|
'check_path': '/icingaweb2/index.php',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,13 +10,8 @@ server {
|
||||||
ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem;
|
ssl_certificate /var/lib/dehydrated/certs/${server_name}/fullchain.pem;
|
||||||
ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem;
|
ssl_certificate_key /var/lib/dehydrated/certs/${server_name}/privkey.pem;
|
||||||
|
|
||||||
location /api/ {
|
location = / {
|
||||||
proxy_pass https://127.0.0.1:5665/;
|
return 302 /icingaweb2/;
|
||||||
proxy_http_version 1.1;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
return 302 /icingaweb2/index.php;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/icingaweb2/index\.php(.*)$ {
|
location ~ ^/icingaweb2/index\.php(.*)$ {
|
||||||
|
@ -33,4 +28,9 @@ server {
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $1 $uri $uri/ /icingaweb2/index.php$is_args$args;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# - cant use the letsencrypt addon, because it doesnt suppeort supplying a different zone (which would be acme.sublimity.de)
|
# - cant use the letsencrypt addon, because it doesnt suppeort supplying a different zone (which would be acme.sublimity.de)
|
||||||
|
|
||||||
# Advanced SSH & Web Terminal:
|
# Advanced SSH & Web Terminal:
|
||||||
#
|
|
||||||
# username: root
|
# username: root
|
||||||
# password: ""
|
# password: ""
|
||||||
# authorized_keys:
|
# authorized_keys:
|
||||||
|
|
Loading…
Reference in a new issue