cwonrails
5/3/2016 - 1:44 PM

Docker Nginx Config

Docker Nginx Config

daemon off;

user  nginx;
worker_processes  1;

pid /var/run/nginx.pid;

events {
  worker_connections 1024;
}

http {
  include           /etc/nginx/mime.types;
  default_type      application/octet-stream;

  # Turn off the bloody buffering to temp files
  proxy_buffering off;

  sendfile          off;
  keepalive_timeout 120;
  
  server_names_hash_bucket_size 128;
  
  # These two should be the same or nginx will start writing 
  #  large request bodies to temp files
  client_body_buffer_size 10m;
  client_max_body_size    10m;

  # AWS DNS
  resolver 169.254.169.253 valid=2s;

  index index.html index.htm;

  server {
    # Do whatever you want here
    listen 8080;
    return 501;
  }
}