From c65ee43fba9cdc1ddaadd10cf498d35bf72d15f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 29 Apr 2022 21:39:41 +0100 Subject: [PATCH] fix database connection strings --- config/services/dendrite.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config/services/dendrite.nix b/config/services/dendrite.nix index 5ea78f7c..f99b2602 100644 --- a/config/services/dendrite.nix +++ b/config/services/dendrite.nix @@ -15,22 +15,22 @@ }; private_key = config.sops.secrets."services/dendrite/private_key".path; }; - app_service_api.database.connection_string = "postgresql:///dendrite_app_service"; + app_service_api.database.connection_string = "postgresql:///dendrite_app_service?sslmode=disable&host=/run/postgresql"; client_api = { registration_shared_secret = "$REGISTRATION_SHARED_SECRET"; }; federation_api = { - database.connection_string = "postgresql:///dendrite_federation"; + database.connection_string = "postgresql:///dendrite_federation?sslmode=disable&host=/run/postgresql"; }; - key_server.database.connection_string = "postgresql:///dendrite_keyserver"; - media_api.database.connection_string = "postgrestql:///dendrite_mediaapi"; + key_server.database.connection_string = "postgresql:///dendrite_keyserver?sslmode=disable&host=/run/postgresql"; + media_api.database.connection_string = "postgrestql:///dendrite_mediaapi?sslmode=disable&host=/run/postgresql"; mscs = { mscs = [ "msc2836" "msc2946" ]; - database.connection_string = "postgresql:///dendrite_mscs"; + database.connection_string = "postgresql:///dendrite_mscs?sslmode=disable&host=/run/postgresql"; }; - room_server.database.connection_string = "postgresql:///dendrite_roomserver"; - sync_api.database.connection_string = "postgresql:///dendrite_syncapi"; - user_api.database.connection_string = "postgresql:///dendrite_userapi"; + 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.database.connection_string = "postgresql:///dendrite_userapi?sslmode=disable&host=/run/postgresql"; }; }; sops.secrets."services/dendrite/secrets" = { owner = "dendrite"; };