diff options
author | Matthew Hodgson <matthew@arasphere.net> | 2019-01-11 15:50:28 +0000 |
---|---|---|
committer | Michael Kaye <1917473+michaelkaye@users.noreply.github.com> | 2019-01-11 15:50:28 +0000 |
commit | cf68593544df2f14e1d389285c53cf0050353280 (patch) | |
tree | 62264c36b672f0a7f4360606040ea77d953bc4a1 /synapse/config | |
parent | Merge pull request #4148 from matrix-org/matthew/red_list (diff) | |
download | synapse-cf68593544df2f14e1d389285c53cf0050353280.tar.xz |
Synchronise account metadata onto another server. (#4145) dinsic_2019-01-11
* implement shadow registration via AS (untested) * shadow support for 3pid binding/unbinding (untested)
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/registration.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/synapse/config/registration.py b/synapse/config/registration.py index 0f41a6602e..f451eea715 100644 --- a/synapse/config/registration.py +++ b/synapse/config/registration.py @@ -64,6 +64,8 @@ class RegistrationConfig(Config): if not isinstance(self.replicate_user_profiles_to, list): self.replicate_user_profiles_to = [self.replicate_user_profiles_to, ] + self.shadow_server = config.get("shadow_server", None) + def default_config(self, **kwargs): registration_shared_secret = random_string_with_symbols(50) @@ -141,6 +143,14 @@ class RegistrationConfig(Config): # cross-homeserver user directories. # replicate_user_profiles_to: example.com + # If specified, attempt to replay registrations, profile changes & 3pid + # bindings on the given target homeserver via the AS API. The HS is authed + # via a given AS token. + # shadow_server: + # hs_url: https://shadow.example.com + # hs: shadow.example.com + # as_token: 12u394refgbdhivsia + # If enabled, don't let users set their own display names/avatars # other than for the very first time (unless they are a server admin). # Useful when provisioning users based on the contents of a 3rd party |