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:latest:psgi [2018/12/19 09:02]
coudot
documentation:latest:psgi [2019/05/25 09:51]
cmaudoux [Using uWSGI]
Line 84: Line 84:
  
 Then adapt your Nginx configuration to use this uWSGI app. Then adapt your Nginx configuration to use this uWSGI app.
 +=== Configuration ===
 +
 +To serve large requests with uWsgi, you could have to modify in uWsgi and/or Nginx init files several options. Example:
 +
 +<file ini uWsgi.ini>​
 +workers = 4
 +buffer-size = 65535
 +limit-post = 0
 +</​file>​
 +
 +<file nginx nginx.conf>​
 +client_max_body_size 300M;
 +proxy_send_timeout 600;
 +proxy_read_timeout 600;
 +proxy_connect_timeout 600;
 +uwsgi_read_timeout 120;
 +uwsgi_send_timeout 120;
 +</​file>​
  
 ===== Protect a PSGI application ===== ===== Protect a PSGI application =====