summary refs log tree commit diff
path: root/synapse/config/federation.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-09-02 16:33:57 +0200
committerGitHub <noreply@github.com>2022-09-02 16:33:57 +0200
commit644d2a595b96918594400e9505dc815c7467c274 (patch)
tree8ba596576d4f434983e484528be8cf08009d5076 /synapse/config/federation.py
parentUpdate .github/workflows/sonarqube.yml (diff)
parentUpdate lock file for Poetry v1.2.0 (#13689) (diff)
downloadsynapse-644d2a595b96918594400e9505dc815c7467c274.tar.xz
Merge branch 'develop' into babolivier/sonar_coverage
Diffstat (limited to 'synapse/config/federation.py')
-rw-r--r--synapse/config/federation.py39
1 files changed, 0 insertions, 39 deletions
diff --git a/synapse/config/federation.py b/synapse/config/federation.py

index f83f93c0ef..336fca578a 100644 --- a/synapse/config/federation.py +++ b/synapse/config/federation.py
@@ -49,44 +49,5 @@ class FederationConfig(Config): "allow_device_name_lookup_over_federation", False ) - def generate_config_section(self, **kwargs: Any) -> str: - return """\ - ## Federation ## - - # Restrict federation to the following whitelist of domains. - # N.B. we recommend also firewalling your federation listener to limit - # inbound federation traffic as early as possible, rather than relying - # purely on this application-layer restriction. If not specified, the - # default is to whitelist everything. - # - #federation_domain_whitelist: - # - lon.example.com - # - nyc.example.com - # - syd.example.com - - # Report prometheus metrics on the age of PDUs being sent to and received from - # the following domains. This can be used to give an idea of "delay" on inbound - # and outbound federation, though be aware that any delay can be due to problems - # at either end or with the intermediate network. - # - # By default, no domains are monitored in this way. - # - #federation_metrics_domains: - # - matrix.org - # - example.com - - # Uncomment to disable profile lookup over federation. By default, the - # Federation API allows other homeservers to obtain profile data of any user - # on this homeserver. Defaults to 'true'. - # - #allow_profile_lookup_over_federation: false - - # Uncomment to allow device display name lookup over federation. By default, the - # Federation API prevents other homeservers from obtaining the display names of - # user devices on this homeserver. Defaults to 'false'. - # - #allow_device_name_lookup_over_federation: true - """ - _METRICS_FOR_DOMAINS_SCHEMA = {"type": "array", "items": {"type": "string"}}