Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:2.1:psgi [2019/05/24 22:07]
cmaudoux [Using uWSGI]
documentation:2.1:psgi [2019/05/25 09:51]
cmaudoux [Using uWSGI]
Line 85: Line 85:
 Then adapt your Nginx configuration to use this uWSGI app. Then adapt your Nginx configuration to use this uWSGI app.
  
-<note important>​ +=== Configuration ===
-To serve large requests with uWsgi, you could have to modify in uWsgi and/or Nginx init files several options :+
  
-''​uWsgi.ini'' ​: +To serve large requests with uWsgi, you could have to modify in uWsgi and/or Nginx init files several optionsExample:
- +
-worker = 4+
  
 +<file ini uWsgi.ini>​
 +workers = 4
 buffer-size = 65535 buffer-size = 65535
- 
 limit-post = 0 limit-post = 0
 +</​file>​
  
-''​Nginx.conf''​ : +<file nginx nginx.conf>
 client_max_body_size 300M; client_max_body_size 300M;
- 
 proxy_send_timeout 600; proxy_send_timeout 600;
- 
 proxy_read_timeout 600; proxy_read_timeout 600;
- 
 proxy_connect_timeout 600; proxy_connect_timeout 600;
- 
 uwsgi_read_timeout 120; uwsgi_read_timeout 120;
- 
 uwsgi_send_timeout 120; uwsgi_send_timeout 120;
-</note>+</file>
  
 ===== Protect a PSGI application ===== ===== Protect a PSGI application =====