summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-02-08 15:33:48 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-03-04 23:57:32 +0100
commit550fc51d7b08c3d49989241fbe13469fb310a42b (patch)
tree9c21139a145ee08efb38d40908aba50cf5c4f231 /nixos/tests
parent88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90 (diff)
downloadnixpkgs-550fc51d7b08c3d49989241fbe13469fb310a42b.tar
nixpkgs-550fc51d7b08c3d49989241fbe13469fb310a42b.tar.gz
nixpkgs-550fc51d7b08c3d49989241fbe13469fb310a42b.tar.bz2
nixpkgs-550fc51d7b08c3d49989241fbe13469fb310a42b.tar.lz
nixpkgs-550fc51d7b08c3d49989241fbe13469fb310a42b.tar.xz
nixpkgs-550fc51d7b08c3d49989241fbe13469fb310a42b.tar.zst
nixpkgs-550fc51d7b08c3d49989241fbe13469fb310a42b.zip
nixos/tests/pantalaimon: use synapse setting option
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/matrix/pantalaimon.nix29
1 files changed, 26 insertions, 3 deletions
diff --git a/nixos/tests/matrix/pantalaimon.nix b/nixos/tests/matrix/pantalaimon.nix
index fcb9904b213..1a9894dd215 100644
--- a/nixos/tests/matrix/pantalaimon.nix
+++ b/nixos/tests/matrix/pantalaimon.nix
@@ -47,9 +47,32 @@ import ../make-test-python.nix (
 
       services.matrix-synapse = {
         enable = true;
-        database_type = "sqlite3";
-        tls_certificate_path = "${cert}";
-        tls_private_key_path = "${key}";
+        settings = {
+          listeners = [ {
+            port = 8448;
+            bind_addresses = [
+              "127.0.0.1"
+              "::1"
+            ];
+            type = "http";
+            tls = true;
+            x_forwarded = false;
+            resources = [ {
+              names = [
+                "client"
+              ];
+              compress = true;
+            } {
+              names = [
+                "federation"
+              ];
+              compress = false;
+            } ];
+          } ];
+          database.name = "sqlite3";
+          tls_certificate_path = "${cert}";
+          tls_private_key_path = "${key}";
+        };
       };
     };