mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
chore(hass): hacsfiles CORS
This commit is contained in:
parent
a6c675c0f8
commit
28998dad84
2 changed files with 21 additions and 0 deletions
|
|
@ -157,6 +157,7 @@ in {
|
|||
trusted_proxies = mkIf cfg.reverseProxy.enable cfg.reverseProxy.trustedAddresses;
|
||||
cors_allowed_origins = [
|
||||
(mkIf cfg.googleAssistant.enable "https://google.com")
|
||||
(mkIf cfg.cast.enable "https://cast.home-assistant.io")
|
||||
(mkIf (cfg.localDomain != null) "https://${cfg.localDomain}")
|
||||
# TODO: (mkIf (cfg.reverseProxy.enable && cfg.reverseProxy.auth.enable) vouch cors idk)
|
||||
"https://www.home-assistant.io"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue