feat(home-assistant): update proxy config
This commit is contained in:
parent
4ba4608b82
commit
ed381c48ae
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue