mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2025-07-22 02:12:24 +02:00
@@ -25,15 +25,21 @@ server {
|
|||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
uwsgi_pass flask_server;
|
uwsgi_pass flask_server;
|
||||||
|
|
||||||
|
uwsgi_buffering on;
|
||||||
|
uwsgi_buffers 8 16k;
|
||||||
|
|
||||||
uwsgi_cache UWSGI;
|
uwsgi_cache UWSGI;
|
||||||
uwsgi_cache_valid 200 302 10m;
|
uwsgi_cache_valid 200 302 10m;
|
||||||
uwsgi_cache_valid 301 1h;
|
uwsgi_cache_valid 301 1h;
|
||||||
uwsgi_cache_valid any 1m;
|
uwsgi_cache_valid any 1m;
|
||||||
uwsgi_cache_lock on;
|
uwsgi_cache_lock on;
|
||||||
|
|
||||||
#uwsgi_ignore_headers Vary;
|
#uwsgi_ignore_headers Cache-Control X-Accel-Expires Expires Vary Set-Cookie;
|
||||||
#uwsgi_hide_header Vary;
|
#uwsgi_hide_header Vary;
|
||||||
|
|
||||||
|
uwsgi_ignore_headers Vary;
|
||||||
|
uwsgi_hide_header Vary;
|
||||||
|
|
||||||
add_header X-cache $upstream_cache_status;
|
add_header X-cache $upstream_cache_status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user