swann: add unifi-poller
This commit is contained in:
parent
17ac1212dd
commit
65c2fce8a7
1 changed files with 9 additions and 0 deletions
|
@ -119,6 +119,15 @@ in {
|
||||||
openPorts = false;
|
openPorts = false;
|
||||||
unifiPackage = pkgs.unifiBeta;
|
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 = {
|
networking.firewall = {
|
||||||
interfaces.ens-general = {
|
interfaces.ens-general = {
|
||||||
|
|
Loading…
Reference in a new issue