diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2019-12-12 13:51:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-12 13:51:25 +0000 |
commit | f4d1ab0027968621c6e6f1c8cc8dfc3ab8cd4b59 (patch) | |
tree | 7c33bbc34925c4ff66fd1868836610055cf5a4ed /docs | |
parent | Add some flaky sytests to a sytest-blacklist (#17) (diff) | |
download | synapse-f4d1ab0027968621c6e6f1c8cc8dfc3ab8cd4b59.tar.xz |
Add the ability to restrict max avatar filesize and content-type (#19)
Diffstat (limited to 'docs')
-rw-r--r-- | docs/sample_config.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml index 7531e3aef8..37c53e4f69 100644 --- a/docs/sample_config.yaml +++ b/docs/sample_config.yaml @@ -663,6 +663,30 @@ uploads_path: "DATADIR/uploads" # #max_upload_size: 10M +# The largest allowed size for a user avatar. If not defined, no +# restriction will be imposed. +# +# Note that this only applies when an avatar is changed globally. +# Per-room avatar changes are not affected. See allow_per_room_profiles +# for disabling that functionality. +# +# Note that user avatar changes will not work if this is set without +# using Synapse's local media repo. +# +#max_avatar_size: 10M + +# Allow mimetypes for a user avatar. If not defined, no restriction will +# be imposed. +# +# Note that this only applies when an avatar is changed globally. +# Per-room avatar changes are not affected. See allow_per_room_profiles +# for disabling that functionality. +# +# Note that user avatar changes will not work if this is set without +# using Synapse's local media repo. +# +#allowed_avatar_mimetypes: ["image/png", "image/jpeg", "image/gif"] + # Maximum number of pixels that will be thumbnailed # #max_image_pixels: 32M |