Add environment variables to control custom emoji size limits

Fixes #1524
This commit is contained in:
Claire
2021-04-25 12:02:41 +02:00
parent a627e59116
commit a346912030
2 changed files with 12 additions and 2 deletions

View File

@ -269,3 +269,10 @@ MAX_POLL_OPTION_CHARS=100
# Maximum search results to display
# Only relevant when elasticsearch is installed
# MAX_SEARCH_RESULTS=20
# Maximum custom emoji file sizes
# If undefined or smaller than MAX_EMOJI_SIZE, the value
# of MAX_EMOJI_SIZE will be used for MAX_REMOTE_EMOJI_SIZE
# Units are in bytes
MAX_EMOJI_SIZE=51200
MAX_REMOTE_EMOJI_SIZE=204800