matrix/roles/synapse/defaults/main/homeserver.ratelimits.yml

113 lines
5.0 KiB
YAML
Raw Normal View History

2024-09-20 12:15:55 +00:00
---
# Ratelimit config, see
# https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#ratelimiting
synapse_config_rc_message_per_second: 0.2
synapse_config_rc_message_burst_count: 10
synapse_config_rc_registration_per_second: 0.1
synapse_config_rc_registration_burst_count: 5
synapse_config_rc_registration_token_validity_per_second: 0.1
synapse_config_rc_registration_token_validity_burst_count: 5
synapse_config_rc_login_address_per_second: 0.003
synapse_config_rc_login_address_burst_count: 5
synapse_config_rc_login_account_per_second: 0.003
synapse_config_rc_login_account_burst_count: 5
synapse_config_rc_login_failed_attempts_per_second: 0.17
synapse_config_rc_login_failed_attempts_burst_count: 3
synapse_config_rc_admin_redaction_per_second: 2
synapse_config_rc_admin_redaction_burst_count: 75
synapse_config_rc_joins_local_per_second: 0.1
synapse_config_rc_joins_local_burst_count: 10
synapse_config_rc_joins_remote_per_second: 0.01
synapse_config_rc_joins_remote_burst_count: 10
synapse_config_rc_joins_per_room_per_second: 1
synapse_config_rc_joins_per_room_burst_count: 10
synapse_config_rc_3pid_validation_per_second: 0.003
synapse_config_rc_3pid_validation_burst_count: 5
synapse_config_rc_invites_per_room_per_second: 0.3
synapse_config_rc_invites_per_room_burst_count: 10
synapse_config_rc_invites_per_user_per_second: 0.003
synapse_config_rc_invites_per_user_burst_count: 5
synapse_config_rc_invites_per_issuer_per_second: 0.3
synapse_config_rc_invites_per_issuer_burst_count: 10
synapse_config_rc_third_party_invite_per_second: 0.2
synapse_config_rc_third_party_invite_burst_count: 10
synapse_config_rc_media_create_per_second: 10
synapse_config_rc_media_create_burst_count: 50
synapse_config_rc_federation_window_size: 1000 # in ms
synapse_config_rc_federation_sleep_limit: 10
synapse_config_rc_federation_sleep_delay: 500 # in ms
synapse_config_rc_federation_reject_limit: 50
synapse_config_rc_federation_concurrent: 5
synapse_config_federation_rr_transactions_per_room_per_second: 50
synapse_ratelimit_config:
rc_message:
per_second: "{{ synapse_config_rc_message_per_second }}"
burst_count: "{{ synapse_config_rc_message_burst_count }}"
rc_registration:
per_second: "{{ synapse_config_rc_registration_per_second }}"
burst_count: "{{ synapse_config_rc_registration_burst_count }}"
rc_registration_token_validity:
per_second: "{{ synapse_config_rc_registration_token_validity_per_second }}"
burst_count: "{{ synapse_config_rc_registration_token_validity_burst_count }}"
rc_login:
address:
per_second: "{{ synapse_config_rc_login_address_per_second }}"
burst_count: "{{ synapse_config_rc_login_address_burst_count }}"
account:
per_second: "{{ synapse_config_rc_login_account_per_second }}"
burst_count: "{{ synapse_config_rc_login_account_burst_count}}"
failed_attemps:
per_second: "{{ synapse_config_rc_login_failed_attempts_per_second }}"
burst_count: "{{ synapse_config_rc_login_failed_attempts_burst_count }}"
rc_admin_redaction:
per_second: "{{ synapse_config_rc_admin_redaction_per_second }}"
burst_count: "{{ synapse_config_rc_admin_redaction_burst_count }}"
rc_joins:
local:
per_second: "{{ synapse_config_rc_joins_local_per_second }}"
burst_count: "{{ synapse_config_rc_joins_local_burst_count }}"
remote:
per_second: "{{ synapse_config_rc_joins_remote_per_second }}"
burst_count: "{{ synapse_config_rc_joins_remote_burst_count}}"
rc_joins_per_room:
per_second: "{{ synapse_config_rc_joins_per_room_per_second }}"
burst_count: "{{ synapse_config_rc_joins_per_room_burst_count }}"
rc_3pid_validation:
per_second: "{{ synapse_config_rc_3pid_validation_per_second }}"
burst_count: "{{ synapse_config_rc_3pid_validation_burst_count }}"
rc_invites:
per_room:
per_second: "{{ synapse_config_rc_invites_per_room_per_second }}"
burst_count: "{{ synapse_config_rc_invites_per_room_burst_count }}"
per_user:
per_second: "{{ synapse_config_rc_invites_per_user_per_second }}"
burst_count: "{{ synapse_config_rc_invites_per_user_burst_count }}"
per_issuer:
per_second: "{{ synapse_config_rc_invites_per_issuer_per_second }}"
burst_count: "{{ synapse_config_rc_invites_per_issuer_burst_count }}"
rc_third_party_invite:
per_second: "{{ synapse_config_rc_third_party_invite_per_second }}"
burst_count: "{{ synapse_config_rc_third_party_invite_burst_count }}"
rc_media_create:
per_second: "{{ synapse_config_rc_media_create_per_second }}"
burst_count: "{{ synapse_config_rc_media_create_burst_count }}"
rc_federation:
window_size: "{{ synapse_config_rc_federation_window_size }}"
sleep_limit: "{{ synapse_config_rc_federation_sleep_limit }}"
sleep_delay: "{{ synapse_config_rc_federation_sleep_delay }}"
reject_limit: "{{ synapse_config_rc_federation_reject_limit }}"
concurrent: "{{ synapse_config_rc_federation_concurrent }}"
federation_rr_transactions_per_room_per_second: >-
{{ synapse_config_federation_rr_transactions_per_room_per_second }}