mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 02:10:55 +00:00
Merge pull request #4524 from matrix-org/erikj/fix_no_tls
Fix bug where synapse fails to start if no_tls set
This commit is contained in:
commit
43c6fca960
2 changed files with 4 additions and 1 deletions
1
changelog.d/4524.feature
Normal file
1
changelog.d/4524.feature
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Synapse will now reload TLS certificates from disk upon SIGHUP.
|
|
@ -95,7 +95,9 @@ class SynapseHomeServer(HomeServer):
|
||||||
site_tag = listener_config.get("tag", port)
|
site_tag = listener_config.get("tag", port)
|
||||||
|
|
||||||
if tls and config.no_tls:
|
if tls and config.no_tls:
|
||||||
return
|
raise ConfigError(
|
||||||
|
"Listener on port %i has TLS enabled, but no_tls is set" % (port,),
|
||||||
|
)
|
||||||
|
|
||||||
resources = {}
|
resources = {}
|
||||||
for res in listener_config["resources"]:
|
for res in listener_config["resources"]:
|
||||||
|
|
Loading…
Reference in a new issue