diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-02-18 15:46:23 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-02-18 15:46:23 +0000 |
commit | 45bb55c6de8b50fdd00893a6ef86623d2f34b864 (patch) | |
tree | e627350a56acc6de96c5d214f02fd837381c1cd0 /synapse/config | |
parent | Merge branch 'develop' into babolivier/acme-delegated (diff) | |
download | synapse-45bb55c6de8b50fdd00893a6ef86623d2f34b864.tar.xz |
Use a configuration parameter to give the domain to generate a certificate for
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/tls.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/config/tls.py b/synapse/config/tls.py index 5fb3486db1..a3a5ece681 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,12 @@ class TlsConfig(Config): # # reprovision_threshold: 30 + # What domain the certificate should be for. Only useful if + # delegation via a /.well-known/matrix/server file is being used. + # Defaults to the server_name configuration parameter. + # + # 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 |