This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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