Skip to content

Instantly share code, notes, and snippets.

@saml
Created May 20, 2013 14:36
Show Gist options
  • Save saml/5612625 to your computer and use it in GitHub Desktop.
Save saml/5612625 to your computer and use it in GitHub Desktop.
http {
proxy_cache_path /var/www/cache levels=2:2 keys_zone=default:30m inactive=24h max_size=1024m;
proxy_temp_path /var/www/tmp;
proxy_buffers 8 256k;
proxy_buffer_size 128k;
proxy_busy_buffers_size 256k;
server {
location /proxy/graph.facebook.com/ {
proxy_cache default;
proxy_cache_valid 200 4h;
proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
proxy_pass https://graph.facebook.com/;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment