Skip to content

Commit

Permalink
Update nginx_example.conf
Browse files Browse the repository at this point in the history
Elaborate on reason for 7M as client_max_body_size, although it is configured as 3*1024*1024.
  • Loading branch information
sjanssen2 committed Dec 7, 2023
1 parent 4cef03a commit 98edc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiita_pet/nginx_example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ events {
}

http {
client_max_body_size 4M; # increase maximum body size from default 1M to match https://github.com/qiita-spots/qiita/blob/ac62aba5333f537c32e213855edc39c273aa9871/qiita_pet/static/vendor/js/resumable-uploader.js#L51
client_max_body_size 7M; # increase maximum body size from default 1M to match https://github.com/qiita-spots/qiita/blob/ac62aba5333f537c32e213855edc39c273aa9871/qiita_pet/static/vendor/js/resumable-uploader.js#L51 (which is 3M). Note that resumable-uploader.js's last chunk can be max. twice as large as chunk size, see: https://github.com/23/resumable.js/issues/51

# ports to redirect for mainqiita
upstream mainqiita {
Expand Down

0 comments on commit 98edc62

Please sign in to comment.