nginx: Increase file upload size from 25mb to 80mb.

This commit is contained in:
Sourabh Rana 2020-11-16 12:56:58 +05:30 committed by Alex Vandiver
parent f05a04e000
commit 419f163906
2 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@ http {
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
client_max_body_size 25m;
client_max_body_size 80m;
include /etc/nginx/mime.types;
default_type application/octet-stream;

View File

@ -409,9 +409,10 @@ LOCAL_UPLOADS_DIR = "/home/zulip/uploads"
#S3_REGION = None
#S3_ENDPOINT_URL = None
# Maximum allowed size of uploaded files, in megabytes. DO NOT SET
# ABOVE 80MB. The file upload implementation doesn't support chunked
# uploads, so browsers will crash if you try uploading larger files.
# 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
# (including hiding upload-related options from UI).
MAX_FILE_UPLOAD_SIZE = 25