Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name защекан.рф, www.защекан.рф;
location / {
proxy_cache backcache;
proxy_cache_bypass $http_cache_control;
add_header X-Proxy-Cache $upstream_cache_status;
proxy_pass http://grabicon.com/;
}
}
http {
### Add Cache
proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=backcache:80m max_size=500m;
proxy_cache_key "$scheme$request_method$host$request_uri$is_args$args";
proxy_cache_valid 200 302 1d;
proxy_cache_valid 404 1m;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment