Compare commits

..

2 commits

Author SHA1 Message Date
314170d267
postgres: add authelia 2023-06-19 19:04:38 -04:00
c170ecf7ac
authelia: switch to postgres 2023-06-19 19:04:33 -04:00
2 changed files with 13 additions and 3 deletions

View file

@ -40,12 +40,17 @@
name = "grafana"; name = "grafana";
ensurePermissions."DATABASE grafana" = "ALL PRIVILEGES"; ensurePermissions."DATABASE grafana" = "ALL PRIVILEGES";
} }
{
name = "authelia";
ensurePermissions."DATABASE authelia" = "ALL PRIVILEGES";
}
]; ];
ensureDatabases = [ ensureDatabases = [
"forgejo" "forgejo"
"hedgedoc" "hedgedoc"
"miniflux" "miniflux"
"grafana" "grafana"
"authelia"
]; ];
}; };
} }

View file

@ -14,7 +14,7 @@
default_2fa_method = "totp"; default_2fa_method = "totp";
default_redirection_url = "https://passport.notohh.dev/"; default_redirection_url = "https://passport.notohh.dev/";
authentication_backend = { authentication_backend = {
file.path = "/etc/authelia/user.yml"; file.path = "/var/lib/authelia-default/user.yml";
}; };
session = { session = {
domain = "notohh.dev"; domain = "notohh.dev";
@ -51,8 +51,13 @@
notifier.filesystem = { notifier.filesystem = {
filename = "/var/lib/authelia-default/notif.txt"; filename = "/var/lib/authelia-default/notif.txt";
}; };
storage.local = { storage.postgres = {
path = "/var/lib/authelia-default/db.sqlite3"; host = "192.168.1.211";
port = 5432;
database = "authelia";
schema = "public";
username = "authelia";
password = "authelia";
}; };
}; };
}; };