swann: add unifi-poller

This commit is contained in:
Luke Granger-Brown 2020-11-06 05:02:05 +00:00
parent 17ac1212dd
commit 65c2fce8a7

View file

@ -119,6 +119,15 @@ in {
openPorts = false;
unifiPackage = pkgs.unifiBeta;
};
services.prometheus.exporters.unifi-poller = {
enable = true;
controllers = [{
url = "https://localhost:8443";
verify_ssl = false;
user = "unifipoller";
pass = pkgs.writeTextFile { name = "unifipoller-password"; text = "unifipoller"; };
}];
};
networking.firewall = {
interfaces.ens-general = {