fix(home-assistant): update port reference
This commit is contained in:
parent
f0797e0486
commit
b21bfa33e1
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue