add device database

This commit is contained in:
Charlotte 🦝 Delenk 2022-04-30 22:00:30 +01:00
parent c1a1fd3b72
commit e53551313b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -36,6 +36,7 @@
room_server.database.connection_string = "postgresql:///dendrite_roomserver?sslmode=disable&host=/run/postgresql";
sync_api.database.connection_string = "postgresql:///dendrite_syncapi?sslmode=disable&host=/run/postgresql";
user_api.account_database.connection_string = "postgresql:///dendrite_userapi?sslmode=disable&host=/run/postgresql";
user_api.device_database.connection_string = "postgresql:///dendrite_deviceapi?sslmode=disable&host=/run/postgresql";
};
};
sops.secrets."services/dendrite/secrets" = { owner = "dendrite"; };
@ -49,6 +50,7 @@
"dendrite_roomserver"
"dendrite_syncapi"
"dendrite_userapi"
"dendrite_userapi_devices"
];
services.postgresql.ensureUsers = [{
name = "dendrite";
@ -61,6 +63,7 @@
"DATABASE dendrite_roomserver" = "ALL PRIVILEGES";
"DATABASE dendrite_syncapi" = "ALL PRIVILEGES";
"DATABASE dendrite_userapi" = "ALL PRIVILEGES";
"DATABASE dendrite_userapi_devices" = "ALL PRIVILEGES";
};
}];
systemd.services.dendrite.serviceConfig = {