summaryrefslogtreecommitdiff
path: root/os/kay/modules/www.nix
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-09-13 12:12:36 +0530
committersinanmohd <sinan@sinanmohd.com>2024-09-13 12:19:13 +0530
commit8b148d39345ec9d06298c93fb836b6ff783a4738 (patch)
tree91da09e692fc9217a9457b7fb2b1f009fa5108eb /os/kay/modules/www.nix
parent1e6c9f709f0bc233f294c938c9ff57f166553557 (diff)
kay/home-assistant: init
Diffstat (limited to 'os/kay/modules/www.nix')
-rw-r--r--os/kay/modules/www.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/kay/modules/www.nix b/os/kay/modules/www.nix
index 54eab65..f565cac 100644
--- a/os/kay/modules/www.nix
+++ b/os/kay/modules/www.nix
@@ -87,6 +87,16 @@ in
locations."= /".return = "301 https://www.${domain}";
};
+ "home.${domain}" = defaultOpts // {
+ extraConfig = "proxy_buffering off;";
+ locations."/" = {
+ proxyWebsockets = true;
+ proxyPass = "http://127.0.0.1:${
+ builtins.toString config.services.home-assistant.config.http.server_port
+ }";
+ };
+ };
+
"${fscusat}" = defaultOpts // {
useACMEHost = null;
enableACME = true;