diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-02-08 15:30:38 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-03-04 23:57:31 +0100 |
commit | 88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90 (patch) | |
tree | b06f77ad5984c094a70beb8fe218f16755adcd0a /nixos/tests | |
parent | f89769055b38b4037a8a036aea0ad74b97c6f41e (diff) | |
download | nixlib-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar nixlib-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.gz nixlib-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.bz2 nixlib-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.lz nixlib-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.xz nixlib-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.tar.zst nixlib-88ddbee02ecd30c6a5e513f5e3f1f9778edb4c90.zip |
nixos/tests/mjolnir: use synapse setting option
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/matrix/mjolnir.nix | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/nixos/tests/matrix/mjolnir.nix b/nixos/tests/matrix/mjolnir.nix index bb55f6f5440b..54094ab9d611 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 ]; |