mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-22 07:16:06 +02:00
Update ingress.conf
This commit is contained in:
@@ -50,16 +50,12 @@ server {
|
|||||||
sub_filter http://$host/ $x_scheme://$x_host$x_port/;
|
sub_filter http://$host/ $x_scheme://$x_host$x_port/;
|
||||||
sub_filter $x_scheme://$host/ $x_scheme://$x_host$x_port/;
|
sub_filter $x_scheme://$host/ $x_scheme://$x_host$x_port/;
|
||||||
|
|
||||||
|
rewrite ^(.*)/api/hassio_ingress/.*(/api/hassio_ingress/.*)$ $1$2 permanent;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
allow 172.30.32.2;
|
allow 172.30.32.2;
|
||||||
deny all;
|
deny all;
|
||||||
proxy_pass http://127.0.0.1:80;
|
proxy_pass http://127.0.0.1:80;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~* ^(.*)/api/hassio_ingress/.*(/api/hassio_ingress/.*)$ {
|
|
||||||
allow 172.30.32.2;
|
|
||||||
deny all;
|
|
||||||
redirect $1$2;
|
|
||||||
proxy_pass http://127.0.0.1:80;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user