use new postgresql module for authelia
This commit is contained in:
parent
df03ba57e2
commit
0916d7dcd1
1 changed files with 6 additions and 15 deletions
|
@ -274,21 +274,12 @@ in
|
||||||
user = autheliaCfg.user;
|
user = autheliaCfg.user;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.postgresql = {
|
shb.postgresql.passwords = [
|
||||||
enable = true;
|
|
||||||
ensureDatabases = [ autheliaCfg.user ];
|
|
||||||
ensureUsers = [
|
|
||||||
{
|
{
|
||||||
name = autheliaCfg.user;
|
username = autheliaCfg.user;
|
||||||
ensurePermissions = {
|
database = autheliaCfg.user;
|
||||||
"DATABASE ${autheliaCfg.user}" = "ALL PRIVILEGES";
|
|
||||||
};
|
|
||||||
ensureClauses = {
|
|
||||||
"login" = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
services.prometheus.scrapeConfigs = [
|
services.prometheus.scrapeConfigs = [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue