summaryrefslogtreecommitdiff
path: root/hostnix/weebnix/home-assistant.nix
diff options
context:
space:
mode:
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" ];