fix(authelia): enable SMTP notifier

This commit is contained in:
Felix Schröter 2024-01-14 17:56:00 +01:00
parent f61b49d9d5
commit d3f7abf0a5
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -20,6 +20,8 @@ let
}];
}];
};
smtpAccount = config.msmtp.accounts.default;
in {
age.secrets.authelia-jwt = {
file = ../secrets/authelia/jwt.age;
@ -54,7 +56,7 @@ in {
environmentVariables = {
AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD_FILE =
config.age.secrets.lldap-password.path;
# AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE = config.age.secrets.smtp.path;
AUTHELIA_NOTIFIER_SMTP_PASSWORD_FILE = config.age.secrets.smtp.path;
};
settings = {
theme = "dark";
@ -113,14 +115,12 @@ in {
# password not used since it uses peer auth
password = "dummy";
};
# TODO set up notifier
notifier.filesystem.filename = "/var/lib/authelia-main/notifications.log";
# notifier.smtp = rec {
# username = "felschr@web.de";
# sender = username;
# host = "smtp.web.de";
# port = 587;
# };
# notifier.filesystem.filename = "/var/lib/authelia-main/notifications.log";
notifier.smtp = {
inherit (smtpAccount) host port;
username = smtpAccount.user;
sender = smtpAccount.from;
};
identity_providers.oidc.clients = [
{
id = "miniflux";