mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-11-10 04:07:26 +01:00
Update nginx
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
4749efa6f4
commit
9aeeed0be0
@ -24,6 +24,9 @@ server {
|
||||
location @flask_app {
|
||||
include uwsgi_params;
|
||||
uwsgi_pass flask_server;
|
||||
|
||||
uwsgi_buffering on;
|
||||
uwsgi_buffers 8 16k;
|
||||
|
||||
uwsgi_cache UWSGI;
|
||||
uwsgi_cache_valid 200 302 10m;
|
||||
@ -31,9 +34,12 @@ server {
|
||||
uwsgi_cache_valid any 1m;
|
||||
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_ignore_headers Vary;
|
||||
uwsgi_hide_header Vary;
|
||||
|
||||
add_header X-cache $upstream_cache_status;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user