feat(home-assistant): update proxy config

This commit is contained in:
Felix Schröter 2022-05-06 17:54:04 +02:00
parent 4ba4608b82
commit ed381c48ae
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -13,8 +13,11 @@ in {
virtualHosts."${config.networking.domain}" = { virtualHosts."${config.networking.domain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = { locations."/" = {
proxyPass = "http://localhost:${toString port}"; proxyPass = "http://[::1]:${toString port}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@ -43,7 +46,7 @@ in {
config = { }; config = { };
http = { http = {
use_x_forwarded_for = true; use_x_forwarded_for = true;
trusted_proxies = [ "127.0.0.1" "::1" ]; trusted_proxies = [ "::1" ];
}; };
"automation editor" = "!include automations.yaml"; "automation editor" = "!include automations.yaml";
"scene editor" = "!include scenes.yaml"; "scene editor" = "!include scenes.yaml";