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;
|
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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue