summary refs log tree commit diff
path: root/synapse/config/tls.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-19 13:24:37 +0000
committerErik Johnston <erik@matrix.org>2019-02-19 13:24:37 +0000
commit0e07d2c7d5582be28771711b79d6a18317291af4 (patch)
treee2624194af13cc82a27f636180ff3549168a35c5 /synapse/config/tls.py
parentRevert "Merge pull request #4654 from matrix-org/hawkowl/registration-worker" (diff)
parentMerge pull request #4671 from matrix-org/erikj/state_cache_invalidation (diff)
downloadsynapse-0e07d2c7d5582be28771711b79d6a18317291af4.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/tls.py')
-rw-r--r--synapse/config/tls.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/synapse/config/tls.py b/synapse/config/tls.py

index 5fb3486db1..38425bb056 100644 --- a/synapse/config/tls.py +++ b/synapse/config/tls.py
@@ -42,6 +42,7 @@ class TlsConfig(Config): self.acme_port = acme_config.get("port", 80) self.acme_bind_addresses = acme_config.get("bind_addresses", ['::', '0.0.0.0']) self.acme_reprovision_threshold = acme_config.get("reprovision_threshold", 30) + self.acme_domain = acme_config.get("domain", config.get("server_name")) self.tls_certificate_file = self.abspath(config.get("tls_certificate_path")) self.tls_private_key_file = self.abspath(config.get("tls_private_key_path")) @@ -229,6 +230,20 @@ class TlsConfig(Config): # # reprovision_threshold: 30 + # The domain that the certificate should be for. Normally this + # should be the same as your Matrix domain (i.e., 'server_name'), but, + # by putting a file at 'https://<server_name>/.well-known/matrix/server', + # you can delegate incoming traffic to another server. If you do that, + # you should give the target of the delegation here. + # + # For example: if your 'server_name' is 'example.com', but + # 'https://example.com/.well-known/matrix/server' delegates to + # 'matrix.example.com', you should put 'matrix.example.com' here. + # + # If not set, defaults to your 'server_name'. + # + # domain: matrix.example.com + # List of allowed TLS fingerprints for this server to publish along # with the signing keys for this server. Other matrix servers that # make HTTPS requests to this server will check that the TLS