Skip to content

Commit fc5991a

Browse files
authored
sync max body size
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.
1 parent ac62aba commit fc5991a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qiita_pet/nginx_example.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ events {
33
}
44

55
http {
6+
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
7+
68
# ports to redirect for mainqiita
79
upstream mainqiita {
810
server localhost:21174;

0 commit comments

Comments
 (0)