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