mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-24 09:06:15 +01:00
Add more databases to the matrix postgres
Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
parent
1e0cfa0332
commit
ee6b977a97
|
@ -122,12 +122,34 @@ in
|
||||||
|
|
||||||
authentication = "host all all all md5";
|
authentication = "host all all all md5";
|
||||||
|
|
||||||
ensureDatabases = { "synapse" = { ENCODING = "UTF8"; TEMPLATE = "template0"; }; };
|
ensureDatabases = {
|
||||||
|
"synapse" = { ENCODING = "UTF8"; TEMPLATE = "template0"; };
|
||||||
|
"mautrix-facebook" = { ENCODING = "UTF8"; TEMPLATE = "template0"; };
|
||||||
|
"mautrix-signal" = { ENCODING = "UTF8"; TEMPLATE = "template0"; };
|
||||||
|
"mautrix-whatsapp" = { ENCODING = "UTF8"; TEMPLATE = "template0"; };
|
||||||
|
"mautrix-discord" = { ENCODING = "UTF8"; TEMPLATE = "template0"; };
|
||||||
|
};
|
||||||
ensureExtensions = {};
|
ensureExtensions = {};
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{ name = "synapse"; ensurePermissions = {
|
{
|
||||||
"DATABASE \"synapse\"" = "ALL PRIVILEGES";
|
name = "synapse";
|
||||||
};
|
ensurePermissions."DATABASE \"synapse\"" = "ALL PRIVILEGES";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mautrix-facebook";
|
||||||
|
ensurePermissions."DATABASE \"mautrix-facebook\"" = "ALL PRIVILEGES";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mautrix-signal";
|
||||||
|
ensurePermissions."DATABASE \"mautrix-signal\"" = "ALL PRIVILEGES";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mautrix-whatsapp";
|
||||||
|
ensurePermissions."DATABASE \"mautrix-whatsapp\"" = "ALL PRIVILEGES";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "mautrix-discord";
|
||||||
|
ensurePermissions."DATABASE \"mautrix-discord\"" = "ALL PRIVILEGES";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue