daemon off;

pid {{run_dir}}/test-env-nginx.pid;

events {
  worker_connections 1024;
}

error_log stderr;

pcre_jit on;

http {
  access_log {{log_dir}}/test-env-nginx/access.log combined;

  client_body_temp_path {{tmp_dir}}/nginx-client_body_temp;
  proxy_temp_path {{tmp_dir}}/nginx-proxy_temp;
  fastcgi_temp_path {{tmp_dir}}/nginx-fastcgi_temp;
  uwsgi_temp_path {{tmp_dir}}/nginx-uwsgi_temp;
  scgi_temp_path {{tmp_dir}}/nginx-scgi_temp;
  server_tokens off;

  lua_package_path '{{_package_path}}';
  lua_package_cpath '{{_package_cpath}}';

  gzip on;
  gzip_comp_level 2;
  gzip_disable msie6;
  gzip_min_length 1000;
  gzip_proxied any;
  gzip_types application/atom+xml application/javascript application/json application/rss+xml application/x-javascript application/xml text/css text/csv text/javascript text/plain text/xml;
  gzip_vary on;

  include ./apis.conf;
}

daemon off;

pid {{run_dir}}/test-env-nginx.pid;

events {
  worker_connections 1024;
}

error_log stderr;

pcre_jit on;

http {
  access_log {{log_dir}}/test-env-nginx/access.log combined;

  client_body_temp_path {{tmp_dir}}/nginx-client_body_temp;
  proxy_temp_path {{tmp_dir}}/nginx-proxy_temp;
  fastcgi_temp_path {{tmp_dir}}/nginx-fastcgi_temp;
  uwsgi_temp_path {{tmp_dir}}/nginx-uwsgi_temp;
  scgi_temp_path {{tmp_dir}}/nginx-scgi_temp;
  server_tokens off;

  lua_package_path '{{_package_path}}';
  lua_package_cpath '{{_package_cpath}}';

  gzip on;
  gzip_comp_level 2;
  gzip_disable msie6;
  gzip_min_length 1000;
  gzip_proxied any;
  gzip_types application/atom+xml application/javascript application/json application/rss+xml application/x-javascript application/xml text/css text/csv text/javascript text/plain text/xml;
  gzip_vary on;

  # Don't restrict file upload size.
  client_max_body_size 0;

  include ./apis.conf;
}

Fix large file upload test failing.
Fix large file upload test failing.

Since we split the test server to its own nginx config, we needed this
additional config in the API backend's nginx config.
