yep, more dotfiles

weird-row-server: grafana: add smtp configuration

wiro.world a1fa3258 09f9eaba

verified
+19 -3
+1 -1
hosts/weird-row-server/authelia.nix
··· 167 167 username = "resend"; 168 168 # Set in `AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE`. 169 169 # password = ""; 170 - sender = "authelia@wiro.world"; 170 + sender = "authelia@services.wiro.world"; 171 171 }; 172 172 }; 173 173 };
+15
hosts/weird-row-server/grafana.nix
··· 20 20 file = secrets/grafana-oidc-secret.age; 21 21 owner = "grafana"; 22 22 }; 23 + age.secrets.grafana-smtp-password = { 24 + file = secrets/grafana-smtp-password.age; 25 + owner = "grafana"; 26 + }; 23 27 services.grafana = { 24 28 enable = true; 25 29 ··· 61 65 token_url = "https://auth.wiro.world/api/oidc/token"; 62 66 api_url = "https://auth.wiro.world/api/oidc/userinfo"; 63 67 use_pkce = true; 68 + }; 69 + 70 + smtp = { 71 + enabled = true; 72 + host = "smtp.resend.com:2587"; 73 + user = "resend"; 74 + password = "$__file{${config.age.secrets.grafana-smtp-password.path}}"; 75 + 76 + from_address = "grafana@services.wiro.world"; 77 + from_name = "wiro.world Grafana Alerts"; 78 + startTLS_policy = "MandatoryStartTLS"; 64 79 }; 65 80 }; 66 81 };
+1
hosts/weird-row-server/secrets/default.nix
··· 11 11 "lldap-user-pass.age".publicKeys = deploy; 12 12 "headscale-oidc-secret.age".publicKeys = deploy; 13 13 "grafana-oidc-secret.age".publicKeys = deploy; 14 + "grafana-smtp-password.age".publicKeys = deploy; 14 15 "authelia-jwt-secret.age".publicKeys = deploy; 15 16 "authelia-issuer-private-key.age".publicKeys = deploy; 16 17 "authelia-storage-key.age".publicKeys = deploy;
hosts/weird-row-server/secrets/grafana-smtp-password.age

This is a binary file and will not be displayed.

hosts/weird-row-server/secrets/pds-env.age

This is a binary file and will not be displayed.

+2 -2
hosts/weird-row-server/vaultwarden.nix
··· 24 24 SMTP_SECURITY = "force_tls"; 25 25 SMTP_USERNAME = "resend"; 26 26 # SMTP_PASSWORD = ...; # Via secret env 27 - SMTP_FROM = "bitwarden@wiro.world"; 28 - SMTP_FROM_NAME = "Bitwarden wiro.world"; 27 + SMTP_FROM = "vaultwarden@services.wiro.world"; 28 + SMTP_FROM_NAME = "wiro.world Vaultwarden"; 29 29 }; 30 30 }; 31 31