diff --git a/roles/matrix/tasks/main.yml b/roles/matrix/tasks/main.yml index edd109b6a9587c481d0e56aee99d90b91123bd2c..734003bab2f964f60cd95d3325fc5c5b2c9b5b6b 100644 --- a/roles/matrix/tasks/main.yml +++ b/roles/matrix/tasks/main.yml @@ -77,7 +77,7 @@ - name: install synapse pip: name: - - 'matrix-synapse[postgres,systemd,url_preview,redis,oidc]==1.51.0' + - 'matrix-synapse[postgres,systemd,url_preview,redis,oidc]==1.52.0' state: latest extra_args: '--upgrade-strategy=eager' virtualenv: /var/lib/synapse/venv diff --git a/roles/matrix/templates/homeserver.yaml.j2 b/roles/matrix/templates/homeserver.yaml.j2 index cf03cd9b1f610c1df17f336b636c62c7546561af..dc57e8ea0d65912414aa38422bedc81ce6559761 100644 --- a/roles/matrix/templates/homeserver.yaml.j2 +++ b/roles/matrix/templates/homeserver.yaml.j2 @@ -30,11 +30,11 @@ # documentation on how to configure or create custom modules for Synapse. # modules: - # - module: my_super_module.MySuperClass - # config: - # do_thing: true - # - module: my_other_super_module.SomeClass - # config: {} + #- module: my_super_module.MySuperClass + # config: + # do_thing: true + #- module: my_other_super_module.SomeClass + # config: {} spam_checker: - module: mjolnir.AntiSpam @@ -482,6 +482,20 @@ limit_remote_rooms: # #allow_per_room_profiles: false +# The largest allowed file size for a user avatar. Defaults to no restriction. +# +# Note that user avatar changes will not work if this is set without +# using Synapse's media repository. +# +#max_avatar_size: 10M + +# The MIME types allowed for user avatars. Defaults to no restriction. +# +# Note that user avatar changes will not work if this is set without +# using Synapse's media repository. +# +#allowed_avatar_mimetypes: ["image/png", "image/jpeg", "image/gif"] + # How long to keep redacted events in unredacted form in the database. After # this period redacted events get replaced with their redacted form in the DB. # @@ -1452,6 +1466,16 @@ auto_join_mxid_localpart: mjolnir # auto_join_rooms_for_guests: false +# Whether to inhibit errors raised when registering a new account if the user ID +# already exists. If turned on, that requests to /register/available will always +# show a user ID as available, and Synapse won't raise an error when starting +# a registration with a user ID that already exists. However, Synapse will still +# raise an error if the registration completes and the username conflicts. +# +# Defaults to false. +# +#inhibit_user_in_use_error: true + ## Metrics ###