mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-24 01:31:51 +02:00
Update ingress.conf
This commit is contained in:
@@ -7,21 +7,10 @@ server {
|
|||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
|
|
||||||
root /opt/scrutiny/web;
|
root /opt/scrutiny/web;
|
||||||
|
|
||||||
if ($http_referer ~* "^(http[s]?)://([^:]+):(\d*)(/.*)$") {
|
|
||||||
set $x_scheme $1;
|
|
||||||
set $x_host $2;
|
|
||||||
set $x_port $3;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($http_referer ~* "^(http[s]?)://([^:]+)(/.*)$") {
|
|
||||||
set $x_scheme $1;
|
|
||||||
set $x_host $2;
|
|
||||||
set $x_port "";
|
|
||||||
}
|
|
||||||
|
|
||||||
location = / {
|
location = / {
|
||||||
return 301 $x_scheme://$host:$x_port%%ingress_entry%%/web/dashboard;
|
absolute_redirect off; # Do not add port to redirect
|
||||||
|
return 301 %%ingress_entry%%/web/dashboard;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
|
|||||||
Reference in New Issue
Block a user