mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 05:36:03 -04:00
Make upload dir a configurable path.
Fixes SYN-425. Signed-off-by: Eric Myhre <hash@exultant.us>
This commit is contained in:
parent
d88e20cdb9
commit
9e5a353663
2 changed files with 6 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue