Skip to content
Snippets Groups Projects
Unverified Commit 3039be82 authored by Brendan Abolivier's avatar Brendan Abolivier Committed by GitHub
Browse files

Merge pull request #5848 from matrix-org/hawkowl/fix-mediarepo-worker-startup

Fix mediarepo worker startup
parents af187805 28bce1ac
No related branches found
No related tags found
No related merge requests found
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.
\ No newline at end of file
......@@ -93,7 +93,7 @@ class ContentRepositoryConfig(Config):
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment