[__matrix_synapse] fix typo in complexity threshold handling

This commit is contained in:
fnux 2021-02-24 14:36:00 +01:00
parent b3f5244cd6
commit 4e37bc2245
No known key found for this signature in database
GPG key ID: 4502C902C00A1E12
3 changed files with 5 additions and 5 deletions

View file

@ -392,11 +392,11 @@ limit_remote_rooms:
# the limit above which rooms cannot be joined. The default is 1.0. # the limit above which rooms cannot be joined. The default is 1.0.
# #
complexity: ${REMOTE_ROOM_COMPLEXITY_TRESHOLD:?} complexity: ${REMOTE_ROOM_COMPLEXITY_THRESHOLD:?}
# override the error which is returned when the room is too complex. # override the error which is returned when the room is too complex.
# #
complexity_error: "This room is too complex." complexity_error: "This room is too complex - local complexity policy prevents you from joing."
# allow server admins to join complex rooms. Default is false. # allow server admins to join complex rooms. Default is false.
# #

View file

@ -210,9 +210,9 @@ fi
ALLOW_PUBLIC_ROOMS_OVER_FEDERATION=$(get_boolean_for 'allow-public-room-over-federation') ALLOW_PUBLIC_ROOMS_OVER_FEDERATION=$(get_boolean_for 'allow-public-room-over-federation')
ALLOW_PUBLIC_ROOMS_WITHOUT_AUTH=$(get_boolean_for 'allow-public-rooms-without-auth') ALLOW_PUBLIC_ROOMS_WITHOUT_AUTH=$(get_boolean_for 'allow-public-rooms-without-auth')
LIMIT_REMOTE_ROOM_COMPLEXITY=$(get_boolean_for 'limit-remote-room-complexity') LIMIT_REMOTE_ROOM_COMPLEXITY=$(get_boolean_for 'limit-remote-room-complexity')
REMOTE_ROOM_COMPLEXITY_TRESHOLD=$(cat "$__object/parameter/remote-room-complexity-treshold") REMOTE_ROOM_COMPLEXITY_THRESHOLD=$(cat "$__object/parameter/remote-room-complexity-threshold")
export ALLOW_PUBLIC_ROOMS_OVER_FEDERATION ALLOW_PUBLIC_ROOMS_WITHOUT_AUTH \ export ALLOW_PUBLIC_ROOMS_OVER_FEDERATION ALLOW_PUBLIC_ROOMS_WITHOUT_AUTH \
LIMIT_REMOTE_ROOM_COMPLEXITY REMOTE_ROOM_COMPLEXITY_TRESHOLD LIMIT_REMOTE_ROOM_COMPLEXITY REMOTE_ROOM_COMPLEXITY_THRESHOLD
if [ -f "$__object/parameter/disable-federation" ]; then if [ -f "$__object/parameter/disable-federation" ]; then
export DISABLE_FEDERATION=1 export DISABLE_FEDERATION=1

View file

@ -23,7 +23,7 @@ rc-login-per-second
rc-login-burst rc-login-burst
global-cache-factor global-cache-factor
event-cache-size event-cache-size
remote-room-complexity-treshold remote-room-complexity-threshold
room-encryption-policy room-encryption-policy
notification-from notification-from
message-max-lifetime message-max-lifetime