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