summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-03 15:06:40 +0000
committerErik Johnston <erik@matrix.org>2014-11-03 15:06:40 +0000
commitaf7ae048f8868a58dc1b82a17ca701f28624b065 (patch)
tree04d682ff7a6edb3828bf70117f5b49c31091e227 /synapse/app
parentRename PDU fields to match that of events. (diff)
downloadsynapse-af7ae048f8868a58dc1b82a17ca701f28624b065.tar.xz
Add option to not bind to HTTPS port. This is useful if running behind an ssl load balancer
Diffstat (limited to 'synapse/app')
-rwxr-xr-xsynapse/app/homeserver.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 6394bc27d1..a20376b9d6 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -233,7 +233,10 @@ def setup():
         f.namespace['hs'] = hs
         reactor.listenTCP(config.manhole, f, interface='127.0.0.1')
 
-    hs.start_listening(config.bind_port, config.unsecure_port)
+    bind_port = config.bind_port
+    if config.no_tls:
+        bind_port = None
+    hs.start_listening(bind_port, config.unsecure_port)
 
     if config.daemonize:
         print config.pid_file