fix(home-assistant): update port reference

This commit is contained in:
Felix Schröter 2022-03-06 20:53:41 +01:00
parent f0797e0486
commit b21bfa33e1
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -2,7 +2,9 @@
with pkgs; with pkgs;
let mqttPort = 1883; let
port = config.services.home-assistant.config.http.server_port;
mqttPort = 1883;
in { in {
# just installed for ConBee firmware updates # just installed for ConBee firmware updates
environment.systemPackages = with pkgs; [ deconz ]; environment.systemPackages = with pkgs; [ deconz ];
@ -12,8 +14,7 @@ in {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
proxyPass = proxyPass = "http://localhost:${toString port}";
"http://localhost:${toString config.services.home-assistant.port}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };