diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-10 11:51:50 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-10 11:51:50 +0100 |
commit | 9970f955ce1ab36d21f7824d9f1382ab1df778e5 (patch) | |
tree | 94f824e633ac9b9fab18171a67a6b94aec2839a9 /synapse/config/tls.py | |
parent | Newsfile (diff) | |
parent | Fix races in room stats (and other) updates. (#6187) (diff) | |
download | synapse-9970f955ce1ab36d21f7824d9f1382ab1df778e5.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/patch_inner
Diffstat (limited to 'synapse/config/tls.py')
-rw-r--r-- | synapse/config/tls.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/synapse/config/tls.py b/synapse/config/tls.py index fc47ba3e9a..f06341eb67 100644 --- a/synapse/config/tls.py +++ b/synapse/config/tls.py @@ -18,6 +18,7 @@ import os import warnings from datetime import datetime from hashlib import sha256 +from typing import List import six @@ -33,7 +34,9 @@ logger = logging.getLogger(__name__) class TlsConfig(Config): - def read_config(self, config, config_dir_path, **kwargs): + section = "tls" + + def read_config(self, config: dict, config_dir_path: str, **kwargs): acme_config = config.get("acme", None) if acme_config is None: @@ -57,7 +60,7 @@ class TlsConfig(Config): self.tls_certificate_file = self.abspath(config.get("tls_certificate_path")) self.tls_private_key_file = self.abspath(config.get("tls_private_key_path")) - if self.has_tls_listener(): + if self.root.server.has_tls_listener(): if not self.tls_certificate_file: raise ConfigError( "tls_certificate_path must be specified if TLS-enabled listeners are " @@ -108,7 +111,7 @@ class TlsConfig(Config): ) # Support globs (*) in whitelist values - self.federation_certificate_verification_whitelist = [] + self.federation_certificate_verification_whitelist = [] # type: List[str] for entry in fed_whitelist_entries: try: entry_regex = glob_to_regex(entry.encode("ascii").decode("ascii")) |