about summary refs log tree commit diff
path: root/.env.production.sample
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-04-25 12:02:41 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-04-26 11:22:22 +0200
commita346912030012dc1451249373ff7ef1a61016517 (patch)
tree534d4177a35c0b0b9fe533cecdb91e07fa857cc8 /.env.production.sample
parenta627e59116507eab6be07b3b3a49bfe4ca77385a (diff)
Add environment variables to control custom emoji size limits
Fixes #1524
Diffstat (limited to '.env.production.sample')
-rw-r--r--.env.production.sample7
1 files changed, 7 insertions, 0 deletions
diff --git a/.env.production.sample b/.env.production.sample
index 12ca64a06..65f3f9d1f 100644
--- a/.env.production.sample
+++ b/.env.production.sample
@@ -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