server {
  listen 51000;
  server_name <%= all_domains.join(" ") %>;

  # Write the real client IP when it's passed via X-Forwarded-For from HAProxy.
  set_real_ip_from 127.0.0.1;
  real_ip_header X-Forwarded-For;

  access_log <%= current_path %>/log/access.log combined;
  error_log <%= current_path %>/log/error.log;

  root <%= current_path %>/public;

  # Serve this rails site with Passenger.
  passenger_enabled on;

  # Set the current environment.
  rails_env <%= rails_env %>;

  # Allow for larger request bodies to allow for huge documentation pages.
  client_max_body_size 10m;
}

server {
  listen 51000;
  server_name <%= all_domains.join(" ") %>;

  # Write the real client IP when it's passed via X-Forwarded-For from HAProxy.
  set_real_ip_from 127.0.0.1;
  real_ip_header X-Forwarded-For;

  access_log <%= current_path %>/log/access.log combined;
  error_log <%= current_path %>/log/error.log;

  root <%= current_path %>/public;

  # Serve this rails site with Passenger.
  passenger_enabled on;

  # Set the current environment.
  rails_env <%= rails_env %>;

  # Allow for larger request bodies to allow for huge documentation pages.
  client_max_body_size 10m;

  # FIXME: Some static end points for temporary benchmarking.
  location /api/api-users/benchmark {
    default_type text/plain;
    echo "Hello World";
    echo_flush;
  }

  location /api/api-users/benchmark_cached {
    default_type text/plain;
    expires 24h;
    echo "Hello World";
    echo_flush;
  }

  location /api/api-users/benchmark_delayed {
    default_type text/plain;
    echo_sleep 5;
    echo "Hello World";
    echo_flush;
  }

  location /api/api-users/benchmark_delayed_cached {
    default_type text/plain;
    expires 24h;
    echo_sleep 0.5;
    echo "Hello World";
    echo_flush;
  }
}

Add some temporary benchmark endpoints.
Add some temporary benchmark endpoints.
