Add config option to disable media_repo on main synapse

... to stop us doing the cache cleanup jobs on the master.
This commit is contained in:
Richard van der Hoff 2017-11-21 13:29:39 +00:00
parent e1fd4751de
commit 68ca864141
4 changed files with 30 additions and 9 deletions

View file

@ -41,6 +41,12 @@ class ServerConfig(Config):
# false only if we are updating the user directory in a worker
self.update_user_directory = config.get("update_user_directory", True)
# whether to enable the media repository endpoints. This should be set
# to false if the media repository is running as a separate endpoint;
# doing so ensures that we will not run cache cleanup jobs on the
# master, potentially causing inconsistency.
self.enable_media_repo = config.get("enable_media_repo", True)
self.filter_timeline_limit = config.get("filter_timeline_limit", -1)
# Whether we should block invites sent to users on this server