Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5848 from matrix-org/hawkowl/fix-mediarepo-worker…
Browse files Browse the repository at this point in the history
…-startup
  • Loading branch information
anoadragon453 committed Feb 20, 2020
2 parents 65c59f3 + 3039be8 commit d3d29fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5848.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Synapse will no longer serve any media repo admin endpoints when `enable_media_repo` is set to False in the configuration. If a media repo worker is used, the admin APIs relating to the media repo will be served from it instead.
2 changes: 1 addition & 1 deletion synapse/config/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def read_config(self, config, **kwargs):
# current worker app is the media repo.
if (
self.enable_media_repo is False
and config.worker_app != "synapse.app.media_repository"
and config.get("worker_app") != "synapse.app.media_repository"
):
self.can_load_media_repo = False
return
Expand Down

0 comments on commit d3d29fd

Please sign in to comment.