zigbee2mqtt : start webinterface
This commit is contained in:
parent
89352f1448
commit
893ad555ab
1 changed files with 21 additions and 0 deletions
|
@ -54,6 +54,11 @@ in {
|
||||||
advanced.network_key = import <secrets/home-assistant/zigbee/networkKey>;
|
advanced.network_key = import <secrets/home-assistant/zigbee/networkKey>;
|
||||||
advanced.log_output = [ "console" ];
|
advanced.log_output = [ "console" ];
|
||||||
|
|
||||||
|
# configure web ui
|
||||||
|
frontend.port = 9666;
|
||||||
|
frontend.host = "0.0.0.0";
|
||||||
|
experimental.new_api = true;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -61,4 +66,20 @@ in {
|
||||||
ZIGBEE2MQTT_DATA = "/var/lib/zigbee2mqtt";
|
ZIGBEE2MQTT_DATA = "/var/lib/zigbee2mqtt";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
virtualHosts = {
|
||||||
|
"zigbee2mqtt.pepe.private" = {
|
||||||
|
serverAliases = [ "zigbee.pepe.private" ];
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://localhost:${
|
||||||
|
toString config.services.zigbee2mqtt.config.frontend.port
|
||||||
|
}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue