diff --git a/hosts/dns/zones/db.bula22.de b/hosts/dns/zones/db.bula22.de index 7057b07..a287f34 100644 --- a/hosts/dns/zones/db.bula22.de +++ b/hosts/dns/zones/db.bula22.de @@ -16,6 +16,7 @@ bula22.de. IN AAAA 2a01:4f8:c0c:c580::1 bula22.de. IN A 88.99.187.135 grafana.bula22.de. IN CNAME monitoring.bula22.de. prometheus.bula22.de. IN CNAME monitoring.bula22.de. +influxdb.bula22.de. IN CNAME monitoring.bula22.de. www.bula22.de. IN CNAME bula22.de. ; Services diff --git a/hosts/monitoring/configuration.nix b/hosts/monitoring/configuration.nix index 5d8a9fd..7940bf9 100644 --- a/hosts/monitoring/configuration.nix +++ b/hosts/monitoring/configuration.nix @@ -21,7 +21,7 @@ with lib; networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; }; networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "ens18"; }; - services.influxdb.enable = true; + services.influxdb2.enable = true; services.prometheus.exporters.blackbox = { enable = true; @@ -298,9 +298,14 @@ with lib; forceSSL = true; locations."/".proxyPass = "http://[::1]:3001/"; }; + "influxdb.bula22.de" = { + enableACME = true; + forceSSL = true; + locations."/".proxyPass = "http://[::1]:8086/"; + }; }; }; - networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedTCPPorts = [ 80 443 8086]; system.stateVersion = "22.05"; }