Update ingress.conf

This commit is contained in:
Alexandre
2022-08-08 12:51:51 +02:00
committed by GitHub
parent 6abda79737
commit 822e08dd57

View File

@@ -50,16 +50,12 @@ server {
sub_filter http://$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 / {
allow 172.30.32.2;
deny all;
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;
}
}