this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

box: add emailer config to grafana

+18 -6
+18 -6
hosts/profiles/monitoring/default.nix
··· 1 1 { self, config, pkgs, ... }: { 2 + age.secrets.smtp_password.file = "${self}/secrets/nullhex-smtp.age"; 3 + age.secrets.smtp_password.owner = "nobody"; 4 + 2 5 # grafana configuration 3 6 services.grafana = { 4 7 enable = true; 5 - settings.server = { 6 - domain = "stats.mossnet.lan"; 7 - http_port = 2342; 8 - http_addr = "127.0.0.1"; 8 + settings = { 9 + smtp = { 10 + enabled = false; 11 + password = "$__file{/run/secrets/smtp_password}"; 12 + host = "smtp.nullhex.com"; 13 + user = "ops@sealight.xyz"; 14 + from_address = "ops@sealight.xyz"; 15 + }; 16 + server = { 17 + domain = "stats.mossnet.lan"; 18 + http_port = 2342; 19 + http_addr = "127.0.0.1"; 20 + }; 9 21 }; 10 22 # TODO enable 11 23 # provision.alerting.rules.path = "${self}/hosts/profiles/monitoring/alert-rules.yaml"; ··· 13 25 14 26 # nginx reverse proxy 15 27 services.nginx.recommendedProxySettings = true; # Needed for new grafana versions 16 - services.nginx.virtualHosts.${config.services.grafana.domain} = { 28 + services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = { 17 29 locations."/" = { 18 - proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; 30 + proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.http_port}"; 19 31 proxyWebsockets = true; 20 32 }; 21 33 };