Skip to content

Commit

Permalink
sync max body size (#3334)
Browse files Browse the repository at this point in the history
While setting up a qiita instance, we stumbled upon issues when uploaded files. File < chunk size were not affected. Also, this error only occurred when qiita run within the nginx setup, not as pure python instance. It looks like there is a default maximum body size for GET commands of 1M in nginx. Therefore, you might want to increase this size in the `nginx_example.conf` or at least leave a comment to inform others.
  • Loading branch information
sjanssen2 committed Nov 27, 2023
1 parent 1c1a4a7 commit 4cef03a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qiita_pet/nginx_example.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ 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

# ports to redirect for mainqiita
upstream mainqiita {
server localhost:21174;
Expand Down

0 comments on commit 4cef03a

Please sign in to comment.