mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-14 11:31:31 +02:00
Update ingress.conf
This commit is contained in:
@@ -23,11 +23,16 @@ server {
|
|||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Host $remote_addr;
|
proxy_set_header X-Forwarded-Host $remote_addr;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme; # Avoids mixed content
|
proxy_set_header X-Forwarded-Proto $scheme; # Avoids mixed content
|
||||||
|
|
||||||
# Allow frames
|
# avoid cache
|
||||||
add_header X-Frame-Options SAMEORIGIN;
|
expires -1; # kill cache
|
||||||
add_header Access-Control-Allow-Origin *;
|
proxy_no_cache 1; # don't cache it
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_cache_bypass 1; # even if cached, don't try to use it
|
||||||
|
|
||||||
|
# Allow frames
|
||||||
|
add_header X-Frame-Options SAMEORIGIN;
|
||||||
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
proxy_set_header Accept-Encoding "";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user