1
0
Fork 0

use new postgresql module for authelia

This commit is contained in:
ibizaman 2023-11-05 16:37:50 -08:00
parent df03ba57e2
commit 0916d7dcd1

View file

@ -274,21 +274,12 @@ in
user = autheliaCfg.user; user = autheliaCfg.user;
}; };
services.postgresql = { shb.postgresql.passwords = [
enable = true; {
ensureDatabases = [ autheliaCfg.user ]; username = autheliaCfg.user;
ensureUsers = [ database = autheliaCfg.user;
{ }
name = autheliaCfg.user; ];
ensurePermissions = {
"DATABASE ${autheliaCfg.user}" = "ALL PRIVILEGES";
};
ensureClauses = {
"login" = true;
};
}
];
};
services.prometheus.scrapeConfigs = [ services.prometheus.scrapeConfigs = [
{ {