about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-08 16:30:12 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-06-08 16:30:12 +0900
commit5d6f773968c06b19305b234a194c09ed901f389d (patch)
tree80673fadf190b5df95c03edd01789faf44069207
parent45f3c5d844b4079a0b8f05033f241bab23017729 (diff)
downloadnixos-conf-5d6f773968c06b19305b234a194c09ed901f389d.tar.gz
Update dendrite server
-rw-r--r--matrix.nix7
-rw-r--r--static.nix3
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;