mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-05 09:14:11 -04:00
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:
parent
e1fd4751de
commit
68ca864141
4 changed files with 30 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue