summary refs log tree commit diff
path: root/synapse/config/server.py
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2016-12-18 20:54:22 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2016-12-18 21:51:56 +0100
commitc95e9fff990722dbeb8bc7971640a517ea7f5fbb (patch)
tree701a836ecd8ae3e00bcdadb4757355a7fc6f7061 /synapse/config/server.py
parentAdd support for specifying multiple bind addresses (diff)
downloadsynapse-c95e9fff990722dbeb8bc7971640a517ea7f5fbb.tar.xz
Make default homeserver config use bind_addresses
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to '')
-rw-r--r--synapse/config/server.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 634d8e6fe5..1b9e10b527 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -155,9 +155,10 @@ class ServerConfig(Config):
             # The port to listen for HTTPS requests on.
             port: %(bind_port)s
 
-            # Local interface to listen on.
-            # The empty string will cause synapse to listen on all interfaces.
-            bind_address: ''
+            # Local addresses to listen on.
+            # This will listen on all IPv4 addresses by default.
+            bind_addresses:
+              - '0.0.0.0'
 
             # This is a 'http' listener, allows us to specify 'resources'.
             type: http
@@ -188,7 +189,7 @@ class ServerConfig(Config):
           # For when matrix traffic passes through loadbalancer that unwraps TLS.
           - port: %(unsecure_port)s
             tls: false
-            bind_address: ''
+            bind_addresses: ['0.0.0.0']
             type: http
 
             x_forwarded: false