user USR;

worker_processes 2;

events {
  worker_connections  1024;
}

http {
  output_buffers   1 32k;
  postpone_output  1460;

  sendfile         on;
  tcp_nopush       on;

  tcp_nodelay      on;

  upstream backendurl {
    server unix:/home/ubuntu/FrameworkBenchmarks/dancer/frameworks-benchmark.sock;
  }

  server {
    listen 8080;
    server_name localhost;

    location / {
      try_files $uri @proxy;
      access_log off;
      expires max;
    }

    location @proxy {
      proxy_set_header Host $http_host;
      proxy_pass http://backendurl;
    }
  }
}
