diff options
author | Neil Johnson <neil@matrix.org> | 2018-07-30 15:55:57 +0100 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2018-07-30 15:55:57 +0100 |
commit | 251e6c1210087069a6133140519de80a4ddf218a (patch) | |
tree | 2550ffc60811f48a100ea185624f01a00a671535 /synapse/config/server.py | |
parent | make /context lazyload & filter aware (#3567) (diff) | |
download | synapse-251e6c1210087069a6133140519de80a4ddf218a.tar.xz |
limit register and sign in on number of monthly users
Diffstat (limited to 'synapse/config/server.py')
-rw-r--r-- | synapse/config/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py index 18102656b0..8b335bff3f 100644 --- a/synapse/config/server.py +++ b/synapse/config/server.py @@ -67,6 +67,11 @@ class ServerConfig(Config): "block_non_admin_invites", False, ) + # Options to control access by tracking MAU + self.limit_usage_by_mau = config.get("limit_usage_by_mau", False) + self.max_mau_value = config.get( + "max_mau_value", 0, + ) # FIXME: federation_domain_whitelist needs sytests self.federation_domain_whitelist = None federation_domain_whitelist = config.get( |