mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
nginx config update
This commit is contained in:
parent
08247f2ce2
commit
d93a769b9d
14 changed files with 323 additions and 105 deletions
|
@ -113,18 +113,22 @@ http {
|
|||
proxy_cache_use_stale error timeout invalid_header http_502;
|
||||
proxy_cache_valid any 1d;
|
||||
|
||||
|
||||
# Cache bypass
|
||||
map $http_cookie $no_cache {
|
||||
default 0;
|
||||
~SESS 1;
|
||||
~wordpress_logged_in 1;
|
||||
}
|
||||
|
||||
|
||||
# File cache settings
|
||||
open_file_cache max=10000 inactive=30s;
|
||||
open_file_cache_valid 60s;
|
||||
open_file_cache_min_uses 2;
|
||||
open_file_cache_errors off;
|
||||
|
||||
|
||||
# Wildcard include
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue