From 5d6f773968c06b19305b234a194c09ed901f389d Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Wed, 8 Jun 2022 16:30:12 +0900 Subject: Update dendrite server --- matrix.nix | 7 +++++-- static.nix | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/matrix.nix b/matrix.nix index 7bb6a60..99e1f5d 100644 --- a/matrix.nix +++ b/matrix.nix @@ -48,7 +48,10 @@ in { }; key_server.database.connection_string = dburl; media_api.database.connection_string = dburl; - mscs.database.connection_string = dburl; + mscs = { + database.connection_string = dburl; + mscs = [ "msc2946" ]; # spaces summary + }; room_server.database.connection_string = dburl; sync_api.database.connection_string = dburl; user_api.account_database.connection_string = dburl; @@ -94,7 +97,7 @@ in { ensurePermissions."DATABASE dendrite" = "ALL PRIVILEGES"; } ]; - package = pkgs.postgresql; + package = pkgs.postgresql_13; }; }; diff --git a/static.nix b/static.nix index 7924aad..ca291e3 100644 --- a/static.nix +++ b/static.nix @@ -54,7 +54,10 @@ in { nginx = { enable = true; + recommendedGzipSettings = true; + recommendedOptimisation = true; recommendedProxySettings = true; + recommendedTlsSettings = true; virtualHosts.${domain} = { enableACME = true; forceSSL = true; -- cgit 1.4.1