diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-19 04:16:32 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-19 04:16:32 +0200 |
| commit | 41010fca612f86c3cfae9537a0418f9f44a5ec7d (patch) | |
| tree | 5ee09d3b9a5ffe9cf81a1c0aa5c812186d476fe4 | |
| parent | modules/monitoring/scrutiny: Don't enable if not enabled (diff) | |
| download | nixos-server-41010fca612f86c3cfae9537a0418f9f44a5ec7d.zip | |
modules/monitoring/grafana: Put behind anubis
Diffstat (limited to '')
| -rw-r--r-- | modules/by-name/mo/monitoring/components/grafana.nix | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/modules/by-name/mo/monitoring/components/grafana.nix b/modules/by-name/mo/monitoring/components/grafana.nix index 5459878..503fa17 100644 --- a/modules/by-name/mo/monitoring/components/grafana.nix +++ b/modules/by-name/mo/monitoring/components/grafana.nix @@ -127,22 +127,8 @@ in { ]; }; + vhack.anubis.instances."${cfg.fqdn}".target = "http://${config.services.grafana.settings.server.http_addr}:${toString cfg.port}"; services = { - nginx = { - virtualHosts.${cfg.fqdn} = { - locations."/" = { - proxyPass = "http://${toString config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}"; - proxyWebsockets = true; - extraConfig = '' - proxy_set_header Host $host; - ''; - }; - - forceSSL = true; - enableACME = true; - }; - }; - postgresql = { ensureUsers = [ { |
