From 9f852c7202bbf0cf95e6bcb4fcbca35afc741701 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Tue, 26 Apr 2022 02:39:53 +0100 Subject: [PATCH] Move synapse to postgres --- hosts/dingserver/synapse.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/dingserver/synapse.nix b/hosts/dingserver/synapse.nix index 739359b..5354f02 100644 --- a/hosts/dingserver/synapse.nix +++ b/hosts/dingserver/synapse.nix @@ -6,11 +6,21 @@ }: let fqdn = "matrix.broccoli.town"; in { + services.postgresql = { + enable = true; + }; + services.matrix-synapse = { enable = true; settings = { server_name = "broccoli.town"; - database.name = "sqlite3"; + database = { + name = "psycopg2"; + args = { + database = "synapse"; + user = "matrix-synapse"; + }; + }; max_upload_size = "50M"; listeners = [ {