summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-02-11 21:34:19 +0000
committerRichard van der Hoff <richard@matrix.org>2019-02-11 21:34:19 +0000
commit15272f837c42e003ade116ca0f1c239a29ebfb93 (patch)
tree20aeb74d19c8713e557f592004a3fefba34ee8d5 /synapse/app
parentMerge branch 'rav/tls_config_logging_fixes' into rav/tls_cert/work (diff)
parentDon't create server contexts when TLS is disabled (diff)
downloadsynapse-15272f837c42e003ade116ca0f1c239a29ebfb93.tar.xz
Merge branch 'rav/no_create_server_contexts_if_no_tls' into rav/tls_cert/work
Diffstat (limited to 'synapse/app')
-rw-r--r--synapse/app/_base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/app/_base.py b/synapse/app/_base.py
index 6d72de1daa..6b3cb61ae9 100644
--- a/synapse/app/_base.py
+++ b/synapse/app/_base.py
@@ -214,6 +214,11 @@ def refresh_certificate(hs):
     disk and updating the TLS context factories to use them.
     """
     hs.config.read_certificate_from_disk()
+
+    if hs.config.no_tls:
+        # nothing else to do here
+        return
+
     hs.tls_server_context_factory = context_factory.ServerContextFactory(hs.config)
 
     if hs._listening_services: