From ed381c48aed2fc0e0de57c7a783efd97ef92e4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Fri, 6 May 2022 17:54:04 +0200 Subject: [PATCH] feat(home-assistant): update proxy config --- services/home-assistant.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/services/home-assistant.nix b/services/home-assistant.nix index f87fe18..d37e629 100644 --- a/services/home-assistant.nix +++ b/services/home-assistant.nix @@ -13,8 +13,11 @@ in { virtualHosts."${config.networking.domain}" = { enableACME = true; forceSSL = true; + extraConfig = '' + proxy_buffering off; + ''; locations."/" = { - proxyPass = "http://localhost:${toString port}"; + proxyPass = "http://[::1]:${toString port}"; proxyWebsockets = true; }; }; @@ -43,7 +46,7 @@ in { config = { }; http = { use_x_forwarded_for = true; - trusted_proxies = [ "127.0.0.1" "::1" ]; + trusted_proxies = [ "::1" ]; }; "automation editor" = "!include automations.yaml"; "scene editor" = "!include scenes.yaml";