mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-29 17:30:33 +02:00
Update ingress.conf
This commit is contained in:
@@ -5,17 +5,13 @@ server {
|
||||
include /etc/nginx/includes/proxy_params.conf;
|
||||
|
||||
client_max_body_size 0;
|
||||
|
||||
location / {
|
||||
# Allow frames
|
||||
## proxy_hide_header "Content-Security-Policy";
|
||||
add_header X-Frame-Options SAMEORIGIN; # Required for ingress frame
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
||||
proxy_connect_timeout 30m;
|
||||
proxy_send_timeout 30m;
|
||||
proxy_read_timeout 30m;
|
||||
charset utf-8;
|
||||
add_header X-Frame-Options SAMEORIGIN;
|
||||
access_log /dev/stdout;
|
||||
error_log /dev/stderr;
|
||||
# proxies
|
||||
proxy_buffering off;
|
||||
proxy_buffers 8 64k;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
@@ -32,6 +28,8 @@ server {
|
||||
gzip_proxied any;
|
||||
gzip_types text/plain text/css text/js text/xml text/javascript
|
||||
application/javascript application/json application/xml image/svg+xml;
|
||||
proxy_pass %%protocol%%://backend%%subpath%%;
|
||||
|
||||
location / {
|
||||
proxy_pass %%protocol%%://backend;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user