nginx config update

This commit is contained in:
Serghey Rodin 2016-11-25 12:19:04 +02:00
commit d93a769b9d
14 changed files with 323 additions and 105 deletions

View file

@ -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;
}