summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-06-21 14:01:01 +0100
committerGitHub <noreply@github.com>2016-06-21 14:01:01 +0100
commit0fe0b0eeb6e2a1b9b5ca8e453769cfe96b6d84cb (patch)
tree7c9246d6764455c5e0abba0f36e614a33f775a7e /synapse/config
parentMerge pull request #887 from matrix-org/dbkr/notif_template_subs_fail (diff)
parentRemove the legacy v0 content upload API. (diff)
downloadsynapse-0fe0b0eeb6e2a1b9b5ca8e453769cfe96b6d84cb.tar.xz
Merge pull request #888 from matrix-org/markjh/content_repo
Remove the legacy v0 content upload API.
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/server.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index 7840dc3ad6..d7e6f20518 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -107,26 +107,6 @@ class ServerConfig(Config):
                 ]
             })
 
-        # Attempt to guess the content_addr for the v0 content repostitory
-        content_addr = config.get("content_addr")
-        if not content_addr:
-            for listener in self.listeners:
-                if listener["type"] == "http" and not listener.get("tls", False):
-                    unsecure_port = listener["port"]
-                    break
-            else:
-                raise RuntimeError("Could not determine 'content_addr'")
-
-            host = self.server_name
-            if ':' not in host:
-                host = "%s:%d" % (host, unsecure_port)
-            else:
-                host = host.split(':')[0]
-                host = "%s:%d" % (host, unsecure_port)
-            content_addr = "http://%s" % (host,)
-
-        self.content_addr = content_addr
-
     def default_config(self, server_name, **kwargs):
         if ":" in server_name:
             bind_port = int(server_name.split(":")[1])