Download large file nginx + uwsgi

stack: bulb 0.10 + uwsgi 1.4.5 + nginx 1.2.3

I can upload small files (<100k) through my application, but larger ones do not work. The uwsgi magazine shows:

Invalid (too large) CONTENT_LENGTH. skip.

The nginx log shows nothing useful.

I tried the following, without success:

  • [nginx conf] client_max_body_size 0 or 20M
  • [uwsgi conf] limit-post: 0 or 20,000,000
  • [bulb conf] MAX_CONTENT_LENGTH = 20,000,000

So my questions are:

  • Is there a config somewhere else I can change?
  • Is there any way to check used parameters at runtime on uwsgi / nginx?
+5
source share
1 answer

Your problem is in the uwsgi limit-post options. Look at the source . This variable can be overridden by other configurations. For example, debian config from /usr/share/uwsgi/conf/default.ini also loaded.

+8
source

Source: https://habr.com/ru/post/1202963/


All Articles