mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-07 04:14:53 +01:00
Update ingress.conf
This commit is contained in:
@@ -7,23 +7,20 @@
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
# Proxy pass
|
# Proxy pass
|
||||||
proxy_pass http://127.0.0.1:8080;
|
proxy_pass http://localhost:8080;
|
||||||
|
|
||||||
# Allow downloading fragments
|
|
||||||
proxy_set_header Range $http_range;
|
|
||||||
proxy_set_header If-Range $http_if_range;
|
|
||||||
|
|
||||||
# Next three lines allow websockets
|
# Next three lines allow websockets
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection "upgrade";
|
proxy_set_header Connection "upgrade";
|
||||||
|
|
||||||
proxy_hide_header X-Powered-By;
|
# Correct base_url
|
||||||
add_header X-Xss-Protection "1; mode=block";
|
proxy_set_header Accept-Encoding "";
|
||||||
add_header X-Content-Type-Options "nosniff";
|
sub_filter_once off;
|
||||||
add_header Strict-Transport-Security "max-age=2592000; includeSubdomains";
|
sub_filter_types *;
|
||||||
add_header X-Frame-Options "SAMEORIGIN";
|
sub_filter href=\" href=\"%%ingress_entry%%;
|
||||||
add_header 'Referrer-Policy' 'no-referrer';
|
sub_filter src=\" src=\"%%ingress_entry%%;
|
||||||
|
sub_filter hx-get=\" hx-get=\"%%ingress_entry%%;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user