user vcap;
worker_processes  2;
daemon off;

error_log /var/vcap/sys/log/blobstore/error.log;
pid       /var/vcap/sys/run/blobstore/nginx.pid;

events {
  worker_connections 8192;
}

http {
  include      /var/vcap/jobs/blobstore/config/mime.types;
  default_type text/html;

  log_format timed_combined '$remote_addr - $remote_user [$time_local] '
                            '"$request" $status $body_bytes_sent '
                            '"$http_referer" "$http_user_agent" '
                            '$request_time $upstream_response_time $pipe';

  access_log	  /var/vcap/sys/log/blobstore/access.log timed_combined;
  server_tokens off;

  sendfile    on;
  tcp_nopush  on;
  tcp_nodelay on;

  keepalive_timeout 75 20;

  gzip                 on;
  gzip_min_length      1250;
  gzip_buffers         16 8k;
  gzip_comp_level      2;
  gzip_proxied         any;
  gzip_types           text/plain text/css application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  gzip_vary            on;
  gzip_disable         "MSIE [1-6]\.(?!.*SV1)";

  include /var/vcap/jobs/blobstore/config/sites/*;
}

user vcap;
worker_processes  2;
daemon off;

error_log /var/vcap/sys/log/blobstore/error.log;
pid       /var/vcap/sys/run/blobstore/nginx.pid;

events {
  worker_connections 8192;
}

http {
  include      /var/vcap/jobs/blobstore/config/mime.types;
  default_type text/html;

  log_format timed_combined '$remote_addr - $remote_user [$time_local] '
                            '"$request" $status $body_bytes_sent '
                            '"$http_referer" "$http_user_agent" '
                            '$request_time $upstream_response_time $pipe';

  access_log	  /var/vcap/sys/log/blobstore/access.log timed_combined;
  server_tokens off;

  sendfile    on;
  sendfile_max_chunk 256m;
  tcp_nopush  on;
  tcp_nodelay on;

  keepalive_timeout 75 20;

  gzip                 on;
  gzip_min_length      1250;
  gzip_buffers         16 8k;
  gzip_comp_level      2;
  gzip_proxied         any;
  gzip_types           text/plain text/css application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
  gzip_vary            on;
  gzip_disable         "MSIE [1-6]\.(?!.*SV1)";

  include /var/vcap/jobs/blobstore/config/sites/*;
}

Configure sendfile_max_chunk in blobstore nginx
Configure sendfile_max_chunk in blobstore nginx

- When exporting large releases on a small instance type the file was
  incomplete because nginx thought director timed out because it was
  taking so long to write the file.

[#116808043](https://www.pivotaltracker.com/story/show/116808043)

Signed-off-by: William Lindner <07e881a60bf9e51606643ece30b1d2ad0de68928@pivotal.io>
