Make upload dir a configurable path.

Fixes SYN-425.

Signed-off-by: Eric Myhre <hash@exultant.us>
This commit is contained in:
Eric Myhre 2015-06-18 23:38:20 -05:00
parent d88e20cdb9
commit 9e5a353663
2 changed files with 6 additions and 2 deletions

View file

@ -112,7 +112,7 @@ class SynapseHomeServer(HomeServer):
def build_resource_for_content_repo(self):
return ContentRepoResource(
self, self.upload_dir, self.auth, self.content_addr
self, self.config.uploads_path, self.auth, self.content_addr
)
def build_resource_for_media_repository(self):
@ -375,7 +375,6 @@ def setup(config_options):
hs = SynapseHomeServer(
config.server_name,
upload_dir=os.path.abspath("uploads"),
db_config=config.database_config,
tls_context_factory=tls_context_factory,
config=config,