Expose max_upload_size as a configurable option #51

Merged
cas merged 2 commits from cas_expose_maxupload into main 2025-10-17 17:05:31 +00:00
Owner
No description provided.
cas added 1 commit 2025-10-02 18:43:01 +00:00
decentral1se reviewed 2025-10-03 16:18:44 +00:00
decentral1se left a comment
Owner

💟

💟
@ -86,6 +86,8 @@ RETENTION_MAX_LIFETIME=4w
#MEDIA_RETENTION_LOCAL_LIFETIME=30d
#MEDIA_RETENTION_REMOTE_LIFETIME=14d
MAX_UPLOAD_SIZE=50M
Owner

Is this a change in behaviour with this default? Might be nice to mention it in the release notes.

Is this a change in behaviour with this default? Might be nice to mention it in the release notes.
Author
Owner

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.

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.
decentral1se marked this conversation as resolved
@ -131,3 +131,3 @@
# https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#max_upload_size
max_upload_size: 50M
max_upload_size: {{ or (env "MAX_UPLOAD_SIZE") 50M }}
Owner

Bump the config in abra.sh as well?

Bump the config in `abra.sh` as well?
Author
Owner

Ah you are correct that it needs to be updated.

Ah you are correct that it needs to be updated.
Author
Owner

I have pushed a commit to update config versions.

I have pushed a commit to update config versions.
decentral1se marked this conversation as resolved
cas added 1 commit 2025-10-03 18:20:52 +00:00
decentral1se approved these changes 2025-10-03 18:37:02 +00:00
Author
Owner

I will merge when i get a chance to test on an existing matrix server, unless someone wants to beat me to it.

I will merge when i get a chance to test on an existing matrix server, unless someone wants to beat me to it.
cas merged commit 730dbc4569 into main 2025-10-17 17:05:31 +00:00
Sign in to join this conversation.
No description provided.