mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Use a configuration parameter to give the domain to generate a certificate for
This commit is contained in:
parent
68a53f825f
commit
45bb55c6de
2 changed files with 11 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue