v2ray-plugin CentOS-7
比如 cloudflare,
| /* SET THE HOST AND PORT OF WooCommerce | |
| * *********************************************************/ | |
| backend default { | |
| .host = "127.0.0.1"; | |
| .port = "8080"; | |
| } | |
| # SET THE ALLOWED IP OF PURGE REQUESTS | |
| # ########################################################## |
| # The path to store the cache files, limit the folder to 100MB | |
| fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m; | |
| # A unique request is defined by this cache key | |
| fastcgi_cache_key "$scheme$request_method$host$request_uri"; | |
| # Show the cached version if upstream gives a timeout or a HTTP 500 error | |
| fastcgi_cache_use_stale error timeout invalid_header http_500; | |
| # Don't use the following headers to define the cache variables |