mirror of https://github.com/zulip/zulip.git
nginx: Increase file upload size from 25mb to 80mb.
This commit is contained in:
parent
f05a04e000
commit
419f163906
|
@ -18,7 +18,7 @@ http {
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
types_hash_max_size 2048;
|
types_hash_max_size 2048;
|
||||||
client_max_body_size 25m;
|
client_max_body_size 80m;
|
||||||
|
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
|
@ -409,9 +409,10 @@ LOCAL_UPLOADS_DIR = "/home/zulip/uploads"
|
||||||
#S3_REGION = None
|
#S3_REGION = None
|
||||||
#S3_ENDPOINT_URL = None
|
#S3_ENDPOINT_URL = None
|
||||||
|
|
||||||
# Maximum allowed size of uploaded files, in megabytes. DO NOT SET
|
# Maximum allowed size of uploaded files, in megabytes. This value is
|
||||||
# ABOVE 80MB. The file upload implementation doesn't support chunked
|
# capped at 80MB in the nginx configuration, because the file upload
|
||||||
# uploads, so browsers will crash if you try uploading larger files.
|
# 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
|
# Set MAX_FILE_UPLOAD_SIZE to 0 to disable file uploads completely
|
||||||
# (including hiding upload-related options from UI).
|
# (including hiding upload-related options from UI).
|
||||||
MAX_FILE_UPLOAD_SIZE = 25
|
MAX_FILE_UPLOAD_SIZE = 25
|
||||||
|
|
Loading…
Reference in New Issue