settings: Increase default max file upload size to 100MB.

This also _lowers_ the default nginx client_max_body_size, since that
no longer caps the upload file size.
This commit is contained in:
Alex Vandiver 2024-09-16 19:14:52 +00:00 committed by Tim Abbott
parent 94dad72b75
commit 24d110f063
3 changed files with 5 additions and 8 deletions

View File

@ -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;

View File

@ -167,7 +167,7 @@ S3_AVATAR_PUBLIC_URL_PREFIX: str | None = None
LOCAL_UPLOADS_DIR: str | None = None
LOCAL_AVATARS_DIR: str | None = None
LOCAL_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 = 5

View File

@ -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