From f637236c51b03c91d77997b898b0fa5e605020d2 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 3 Feb 2024 04:19:48 +0900 Subject: feat(nixos/kanata): switch to new modules --- modules/services/blocky/default.nix | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'modules/services') diff --git a/modules/services/blocky/default.nix b/modules/services/blocky/default.nix index 5afa4a8..81c517e 100644 --- a/modules/services/blocky/default.nix +++ b/modules/services/blocky/default.nix @@ -32,11 +32,6 @@ in ips = [ "9.9.9.9" "149.112.112.112" ]; }; - customDNS.mapping = { - "metrics.internal" = "100.93.1.1"; # kanata - "nextcloud.internal" = "100.93.1.1"; # kanata - }; - caching = { minTime = "0m"; maxTime = "12h"; @@ -68,8 +63,6 @@ in services.prometheus = { enable = true; - listenAddress = "127.0.0.1"; - port = 9000; globalConfig.scrape_interval = "15s"; globalConfig.evaluation_interval = "15s"; scrapeConfigs = [{ @@ -79,14 +72,7 @@ in }; services.grafana = { - enable = true; settings = { - analytics.reporting_enabled = false; - server = { - domain = "127.0.0.1:3000"; - http_addr = "127.0.0.1"; - enable_gzip = true; - }; # Required for blocky panel panels.disable_sanitize_html = true; }; @@ -99,7 +85,7 @@ in access = "proxy"; orgId = 1; uid = "5Z0Y8D3GXAMDODSF"; - url = "http://127.0.0.1:9000"; + url = "http://127.0.0.1:${toString config.services.prometheus.port}"; isDefault = true; jsonData = { graphiteVersion = "1.1"; @@ -116,16 +102,6 @@ in }; }; - services.nginx.virtualHosts."metrics.internal" = { - locations."/" = { - proxyPass = "http://localhost:3000"; - proxyWebsockets = true; - extraConfig = '' - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - ''; - }; - }; - environment.etc."grafana-dashboards/blocky_rev3.json" = { source = ./grafana_blocky_rev3.json; group = "grafana"; -- cgit 1.4.1