From 8b148d39345ec9d06298c93fb836b6ff783a4738 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 13 Sep 2024 12:12:36 +0530 Subject: kay/home-assistant: init --- os/kay/modules/www.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'os/kay/modules/www.nix') 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; -- cgit v1.2.3