Skip to content

Instantly share code, notes, and snippets.

@fabiocruzcoelho
Created January 26, 2018 15:42
Show Gist options
  • Save fabiocruzcoelho/82d343d8964ebd76ea41efde66acfb0f to your computer and use it in GitHub Desktop.
Save fabiocruzcoelho/82d343d8964ebd76ea41efde66acfb0f to your computer and use it in GitHub Desktop.
proxy_cache_valid 1h; # 200, 301 and 302 will be cached.
proxy_cache_use_stale error
timeout
invalid_header
http_500
http_502
http_504
http_404;
proxy_buffering on;
proxy_cache_min_uses 3;
proxy_max_temp_file_size 0;
proxy_ignore_client_abort off;
proxy_intercept_errors on;
proxy_next_upstream error timeout invalid_header;
proxy_redirect off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
proxy_ignore_headers Expires Cache-Control;
proxy_http_version 1.1;
proxy_set_header Connection "";
#proxy_cache_key "$scheme$host$uri$is_args$args";root@btu-nginx01:/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment