mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-12-07 07:24:47 +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
1 changed files with 26 additions and 4 deletions
|
@ -122,12 +122,34 @@ in
|
|||
|
||||
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 = {};
|
||||
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