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:30:38 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-03-04 23:57:31 +0100
commit88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90 (patch)
treeb06f77ad5984c094a70beb8fe218f16755adcd0a /nixos/tests
parentf89769055b38b4037a8a036aea0ad74b97c6f41e (diff)
downloadnixpkgs-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar
nixpkgs-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.gz
nixpkgs-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.bz2
nixpkgs-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.lz
nixpkgs-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.xz
nixpkgs-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.zst
nixpkgs-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.zip
nixos/tests/mjolnir: use synapse setting option
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/matrix/mjolnir.nix43
1 files changed, 24 insertions, 19 deletions
diff --git a/nixos/tests/matrix/mjolnir.nix b/nixos/tests/matrix/mjolnir.nix
index bb55f6f5440..54094ab9d61 100644
--- a/nixos/tests/matrix/mjolnir.nix
+++ b/nixos/tests/matrix/mjolnir.nix
@@ -38,26 +38,31 @@ import ../make-test-python.nix (
       homeserver = { pkgs, ... }: {
         services.matrix-synapse = {
           enable = true;
-          database_type = "sqlite3";
-          tls_certificate_path = "${cert}";
-          tls_private_key_path = "${key}";
-          enable_registration = true;
-          registration_shared_secret = "supersecret-registration";
-
-          listeners = [
-            # The default but tls=false
-            {
-              "bind_address" = "";
-              "port" = 8448;
-              "resources" = [
-                { "compress" = true; "names" = [ "client" "webclient" ]; }
-                { "compress" = false; "names" = [ "federation" ]; }
+          settings = {
+            database.name = "sqlite3";
+            tls_certificate_path = "${cert}";
+            tls_private_key_path = "${key}";
+            enable_registration = true;
+            registration_shared_secret = "supersecret-registration";
+
+            listeners = [ {
+              # The default but tls=false
+              bind_addresses = [
+                "0.0.0.0"
               ];
-              "tls" = false;
-              "type" = "http";
-              "x_forwarded" = false;
-            }
-          ];
+              port = 8448;
+              resources = [ {
+                compress = true;
+                names = [ "client" ];
+              } {
+                compress = false;
+                names = [ "federation" ];
+              } ];
+              tls = false;
+              type = "http";
+              x_forwarded = false;
+            } ];
+          };
         };
 
         networking.firewall.allowedTCPPorts = [ 8448 ];