Skip to content

Instantly share code, notes, and snippets.

@jpoz
Created July 27, 2009 19:01
Show Gist options
  • Select an option

  • Save jpoz/156675 to your computer and use it in GitHub Desktop.

Select an option

Save jpoz/156675 to your computer and use it in GitHub Desktop.
## FRONT END SERVER
location ^~ /progress {
proxy_pass_header X-Progress-ID;
proxy_pass_header X-Request-With;
proxy_pass http://174.129.123.123;
break;
}
location /videos {
proxy_buffering off;
proxy_pass_request_body on;
proxy_max_temp_file_size 0m;
client_max_body_size 200m;
proxy_pass http://174.129.123.123;
break;
}
## UPLOAD SERVER
location / {
track_uploads proxied 30s;
client_max_body_size 200m;
if (!-f $request_filename) {
proxy_pass http://panda_upstream;
break;
}
location ^~ /progress {
report_uploads proxied;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment