mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-25 04:38:29 -04:00
Merge pull request #5440 from matrix-org/babolivier/third_party_event_rules
Allow server admins to define implementations of extra rules for allowing or denying incoming events
This commit is contained in:
commit
f12e1f029c
9 changed files with 284 additions and 4 deletions
|
@ -1351,3 +1351,16 @@ password_config:
|
|||
# alias: "*"
|
||||
# room_id: "*"
|
||||
# action: allow
|
||||
|
||||
|
||||
# Server admins can define a Python module that implements extra rules for
|
||||
# allowing or denying incoming events. In order to work, this module needs to
|
||||
# override the methods defined in synapse/events/third_party_rules.py.
|
||||
#
|
||||
# This feature is designed to be used in closed federations only, where each
|
||||
# participating server enforces the same rules.
|
||||
#
|
||||
#third_party_event_rules:
|
||||
# module: "my_custom_project.SuperRulesSet"
|
||||
# config:
|
||||
# example_option: 'things'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue