git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #70469 from Vskilet/matrix-synapse-update

matrix-synapse: 1.3.1 -> 1.4.0

commit7774945b70d1b57f2b7fc944e952119d33655b12 authorMaximilian Bosch <maximilian@mbosch.me> dateTue 15 Oct 2019, 01:31 (7 years ago) parent1016bfc3724223
2 files changed+35−11
nixos/modules/services/misc/matrix-synapse.nix+32−8 pkgs/servers/matrix-synapse/default.nix+3−3
nixos/modules/services/misc/matrix-synapse.nix+32−8
@@ -79,7 +79,11 @@ turn_user_lifetime: "${cfg.turn_user_lifetime}"
7979user_creation_max_duration: ${cfg.user_creation_max_duration}
8080bcrypt_rounds: ${cfg.bcrypt_rounds}
8181allow_guest_access: ${boolToString cfg.allow_guest_access}
82−trusted_third_party_id_servers: ${builtins.toJSON cfg.trusted_third_party_id_servers}
82+
83+account_threepid_delegates:
84+ ${optionalString (cfg.account_threepid_delegates.email != null) "email: ${cfg.account_threepid_delegates.email}"}
85+ ${optionalString (cfg.account_threepid_delegates.msisdn != null) "msisdn: ${cfg.account_threepid_delegates.msisdn}"}
86+
8387room_invite_state_types: ${builtins.toJSON cfg.room_invite_state_types}
8488${optionalString (cfg.macaroon_secret_key != null) ''
8589 macaroon_secret_key: "${cfg.macaroon_secret_key}"
@@ -102,6 +106,7 @@ perspectives:
102106 '') cfg.servers)}
103107 }
104108 }
109+redaction_retention_period: ${toString cfg.redaction_retention_period}
105110app_service_config_files: ${builtins.toJSON cfg.app_service_config_files}
106111
107112${cfg.extraConfig}
@@ -552,14 +557,18 @@ in {
552557 accessible to anonymous users.
553558 '';
554559 };
555− trusted_third_party_id_servers = mkOption {
556− type = types.listOf types.str;
557− default = [
558− "matrix.org"
559− "vector.im"
560− ];
560+ account_threepid_delegates.email = mkOption {
561+ type = types.nullOr types.str;
562+ default = null;
561563 description = ''
562− The list of identity servers trusted to verify third party identifiers by this server.
564+ Delegate email sending to https://example.org
565+ '';
566+ };
567+ account_threepid_delegates.msisdn = mkOption {
568+ type = types.nullOr types.str;
569+ default = null;
570+ description = ''
571+ Delegate SMS sending to this local process (https://localhost:8090)
563572 '';
564573 };
565574 room_invite_state_types = mkOption {
@@ -600,6 +609,13 @@ in {
600609 A list of application service config file to use
601610 '';
602611 };
612+ redaction_retention_period = mkOption {
613+ type = types.int;
614+ default = 7;
615+ description = ''
616+ How long to keep redacted events in unredacted form in the database.
617+ '';
618+ };
603619 extraConfig = mkOption {
604620 type = types.lines;
605621 default = "";
@@ -699,4 +715,12 @@ in {
699715 };
700716 };
701717 };
718+
719+ imports = [
720+ (mkRemovedOptionModule [ "services" "matrix-synapse" "trusted_third_party_id_servers" ] ''
721+ The `trusted_third_party_id_servers` option as been removed in `matrix-synapse` v1.4.0
722+ as the behavior is now obsolete.
723+ '')
724+ ];
725+
702726}
pkgs/servers/matrix-synapse/default.nix+3−3
@@ -23,11 +23,11 @@ let
2323
2424in buildPythonApplication rec {
2525 pname = "matrix-synapse";
26− version = "1.3.1";
26+ version = "1.4.0";
2727
2828 src = fetchPypi {
2929 inherit pname version;
30− sha256 = "1nz9bhy5hraa1h7100vr0innz8npnpha6xr9j2ln7h3cgwv73739";
30+ sha256 = "1y8yhzsf2lk2d7v4l61rpy4918c0qz276j79q88l9yazb6gw5pkk";
3131 };
3232
3333 patches = [
@@ -83,6 +83,6 @@ in buildPythonApplication rec {
8383 homepage = https://matrix.org;
8484 description = "Matrix reference homeserver";
8585 license = licenses.asl20;
86− maintainers = with maintainers; [ ralith roblabla ekleog pacien ];
86+ maintainers = with maintainers; [ ralith roblabla ekleog pacien ma27 ];
8787 };
8888}