Expose max_upload_size as a configurable option #51
Reference in New Issue
Block a user
No description provided.
Delete Branch "cas_expose_maxupload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
💟
@ -86,6 +86,8 @@ RETENTION_MAX_LIFETIME=4w#MEDIA_RETENTION_LOCAL_LIFETIME=30d#MEDIA_RETENTION_REMOTE_LIFETIME=14dMAX_UPLOAD_SIZE=50MIs this a change in behaviour with this default? Might be nice to mention it in the release notes.
I believe I have preserved the default (eg, MAX_UPLOAD_SIZE is empty) by using the { or } construction in the templates (they were explicitly set to 50M before). That is an extra protection for people upgrading, and then we set the value explicitly for new installations.
@ -131,3 +131,3 @@# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#max_upload_sizemax_upload_size: 50Mmax_upload_size: {{ or (env "MAX_UPLOAD_SIZE") 50M }}Bump the config in
abra.shas well?Ah you are correct that it needs to be updated.
I have pushed a commit to update config versions.
I will merge when i get a chance to test on an existing matrix server, unless someone wants to beat me to it.