Skip to content

Instantly share code, notes, and snippets.

@Suhail
Created October 7, 2009 19:43
Show Gist options
  • Save Suhail/204367 to your computer and use it in GitHub Desktop.
Save Suhail/204367 to your computer and use it in GitHub Desktop.
location / {
gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Magic-Header "secret";
proxy_connect_timeout 10;
client_max_body_size 10m;
#if (!-f $request_filename) {
# proxy_pass http://127.0.0.1:8000/;
break;
#}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment