Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Increase default max file upload size to 100MB.
Alex Vandiver24d110f063d0
diff --git a/puppet/zulip/templates/nginx.conf.template.erb b/puppet/zulip/templates/nginx.conf.template.erbindex 98d07b4b586..84e46bbd8f9 100644--- a/puppet/zulip/templates/nginx.conf.template.erb+++ b/puppet/zulip/templates/nginx.conf.template.erb@@ -19,7 +19,7 @@ http {tcp_nodelay on;keepalive_timeout 65;types_hash_max_size 2048;- client_max_body_size 80m;+ client_max_body_size 25m;include /etc/nginx/mime.types;default_type application/octet-stream;diff --git a/zproject/default_settings.py b/zproject/default_settings.pyindex dc21cea2ce0..099d88d2029 100644--- a/zproject/default_settings.py+++ b/zproject/default_settings.py@@ -167,7 +167,7 @@ S3_AVATAR_PUBLIC_URL_PREFIX: str | None = NoneLOCAL_UPLOADS_DIR: str | None = NoneLOCAL_AVATARS_DIR: str | None = NoneLOCAL_FILES_DIR: str | None = None-MAX_FILE_UPLOAD_SIZE = 25+MAX_FILE_UPLOAD_SIZE = 100# How many GB an organization on a paid plan can upload per user,# on zulipchat.com.UPLOAD_QUOTA_PER_USER_GB = 5diff --git a/zproject/prod_settings_template.py b/zproject/prod_settings_template.pyindex aff324dbceb..9a28017bc35 100644--- a/zproject/prod_settings_template.py+++ b/zproject/prod_settings_template.py@@ -800,13 +800,10 @@ LOCAL_UPLOADS_DIR = "/home/zulip/uploads"# S3_SKIP_PROXY = True# S3_UPLOADS_STORAGE_CLASS = "STANDARD"-## Maximum allowed size of uploaded files, in megabytes. This value is-## capped at 80MB in the nginx configuration, because the file upload-## implementation doesn't use chunked uploads, and browsers may crash-## with larger uploads.-## Set MAX_FILE_UPLOAD_SIZE to 0 to disable file uploads completely+## Maximum allowed size of uploaded files, in megabytes. Set+## MAX_FILE_UPLOAD_SIZE to 0 to disable file uploads completely## (including hiding upload-related options from UI).-MAX_FILE_UPLOAD_SIZE = 25+MAX_FILE_UPLOAD_SIZE = 100## Controls whether name changes are completely disabled for this## installation. This is useful when you're syncing names from an