diff options
author | Erik Johnston <erikj@jki.re> | 2017-05-15 16:08:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-15 16:08:46 +0100 |
commit | 2c9475b58e6aa8c4bc7f7ae402664b99f49e730f (patch) | |
tree | b0f37278ccf9994539663bb17c55365bb40153f3 /synapse/config | |
parent | Merge pull request #2223 from matrix-org/erikj/ignore_not_retrying (diff) | |
parent | Fixed syntax nits (diff) | |
download | synapse-2c9475b58e6aa8c4bc7f7ae402664b99f49e730f.tar.xz |
Merge pull request #2221 from psaavedra/sync_timeline_limit_filter_by_name
Configurable maximum number of events requested by /sync and /messages
Diffstat (limited to 'synapse/config')
-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 25e6666238..3910b9dc31 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -35,6 +35,8 @@ class ServerConfig(Config): # "disable" federation self.send_federation = config.get("send_federation", True) + self.filter_timeline_limit = config.get("filter_timeline_limit", -1) + if self.public_baseurl is not None: if self.public_baseurl[-1] != '/': self.public_baseurl += '/' @@ -161,6 +163,10 @@ class ServerConfig(Config): # The GC threshold parameters to pass to `gc.set_threshold`, if defined # gc_thresholds: [700, 10, 10] + # Set the limit on the returned events in the timeline in the get + # and sync operations. The default value is -1, means no upper limit. + # filter_timeline_limit: 5000 + # List of ports that Synapse should listen on, their purpose and their # configuration. listeners: |