summary refs log tree commit diff
path: root/synapse/app
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-22 10:25:27 +0100
committerErik Johnston <erik@matrix.org>2014-08-22 10:25:32 +0100
commitacf51276042cf438cbb02bb5ef31c42206d7685d (patch)
treec88e41e229638f3b96817af8c46e79d313a01acd /synapse/app
parentresizeImage: generate an image in the format of the original image. (Tested w... (diff)
downloadsynapse-acf51276042cf438cbb02bb5ef31c42206d7685d.tar.xz
Make the content repo work with in daemon mode. Return the full url on upload. Update the webclient to use new content repo api.
Diffstat (limited to 'synapse/app')
-rwxr-xr-xsynapse/app/homeserver.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py
index 6b39da4a7d..495149466c 100755
--- a/synapse/app/homeserver.py
+++ b/synapse/app/homeserver.py
@@ -56,7 +56,7 @@ class SynapseHomeServer(HomeServer):
         return File("webclient")  # TODO configurable?
 
     def build_resource_for_content_repo(self):
-        return ContentRepoResource("uploads", self.auth)
+        return ContentRepoResource(self, self.upload_dir, self.auth)
 
     def build_db_pool(self):
         """ Set up all the dbs. Since all the *.sql have IF NOT EXISTS, so we
@@ -257,7 +257,8 @@ def setup():
 
     hs = SynapseHomeServer(
         args.host,
-        db_name=db_name
+        upload_dir=os.path.abspath("uploads"),
+        db_name=db_name,
     )
 
     # This object doesn't need to be saved because it's set as the handler for