From b44323f868c845adb17d441f872ea3b192ae2aca Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 13 Feb 2024 16:03:54 -0500 Subject: Leftover weebnix configs (hard drive died?) --- hostnix/weebnix/home-assistant.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hostnix/weebnix/home-assistant.nix') 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" ]; -- cgit v1.3.1