summaryrefslogtreecommitdiff
path: root/hostnix/weebnix/home-assistant.nix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-02-13 16:03:54 -0500
committerJoe Mou <dev@mou.fo>2024-02-13 16:03:54 -0500
commitb44323f868c845adb17d441f872ea3b192ae2aca (patch)
tree986b8f90cf90bcf4225c519b00902c5e26a3f6b3 /hostnix/weebnix/home-assistant.nix
parent4c705566d91b42ca4c22623346ac377d3932870c (diff)
Leftover weebnix configs (hard drive died?)
Diffstat (limited to 'hostnix/weebnix/home-assistant.nix')
-rw-r--r--hostnix/weebnix/home-assistant.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/hostnix/weebnix/home-assistant.nix b/hostnix/weebnix/home-assistant.nix
index ad07d2b..77c7fa8 100644
--- a/hostnix/weebnix/home-assistant.nix
+++ b/hostnix/weebnix/home-assistant.nix
@@ -62,6 +62,7 @@
};
}
)
+ colorama
];
dontBuild = true;
}
@@ -103,6 +104,12 @@
proxy_buffering off;
'';
};
+ # Disable service worker caching that works improperly with reverse proxy.
+ # https://github.com/home-assistant/frontend/issues/14836
+ # https://community.home-assistant.io/t/disabling-service-worker-reverse-proxy-auth-causes-issues/167082
+ locations."/service_worker.js" = {
+ return = ''410 "Service worker disabled: https://github.com/home-assistant/frontend/issues/14836"'';
+ };
};
services.oauth2_proxy.nginx.virtualHosts = [ "ha.weebnix.mou.fo" ];