You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
808 B

  1. # FastCGI cache settings
  2. fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inactive=60m max_size=256M;
  3. fastcgi_cache_key "$scheme$request_method$host$request_uri";
  4. fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503;
  5. fastcgi_cache_methods GET HEAD;
  6. fastcgi_cache_valid 200 301 302 404 1h;
  7. fastcgi_buffers 256 32k;
  8. fastcgi_buffer_size 256k;
  9. fastcgi_connect_timeout 4s;
  10. fastcgi_send_timeout 120s;
  11. fastcgi_busy_buffers_size 512k;
  12. fastcgi_temp_file_write_size 512K;
  13. fastcgi_param SERVER_NAME $http_host;
  14. fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
  15. fastcgi_keep_conn on;
  16. fastcgi_intercept_errors on;
  17. fastcgi_cache_background_update on;
  18. fastcgi_socket_keepalive on;
  19. fastcgi_cache_lock on;
  20. fastcgi_cache_lock_age 1s;
  21. fastcgi_cache_lock_timeout 3s;