Skip to content

Instantly share code, notes, and snippets.

@louy
Created April 28, 2016 21:23
Show Gist options
  • Save louy/8e0618e753394b1229346c6842bc5332 to your computer and use it in GitHub Desktop.
Save louy/8e0618e753394b1229346c6842bc5332 to your computer and use it in GitHub Desktop.
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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment