zigbee2mqtt : start webinterface

This commit is contained in:
Ingolf Wagner 2020-12-05 22:47:54 +01:00
parent 89352f1448
commit 893ad555ab
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -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;
};
};
};
};
} }