diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-21 13:29:39 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-22 16:20:27 +0000 |
commit | 68ca8641419ee42606192787b92152353f5c112e (patch) | |
tree | 6bbaf289bb72c86a5d1002f69934bd6f20e0ad29 /synapse/config/server.py | |
parent | Build MediaRepositoryResource as a homeserver dependency (diff) | |
download | synapse-68ca8641419ee42606192787b92152353f5c112e.tar.xz |
Add config option to disable media_repo on main synapse
... to stop us doing the cache cleanup jobs on the master.
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r-- | synapse/config/server.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 4d9193536d..edb90a1348 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -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 |