mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-03 16:00:29 +01: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 $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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user