@@ -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}