|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
map $http_cf_connecting_ip $x_real_ip_ip {
|
|
default $http_cf_connecting_ip;
|
|
'' $remote_addr;
|
|
}
|
|
|
|
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g;
|