From e53551313bf9c756c0f54ca4f0040a1827e2f444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sat, 30 Apr 2022 22:00:30 +0100 Subject: [PATCH] add device database --- config/services/dendrite.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/services/dendrite.nix b/config/services/dendrite.nix index b2bc94c4..9b63240c 100644 --- a/config/services/dendrite.nix +++ b/config/services/dendrite.nix @@ -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 = {