Created
April 28, 2016 21:23
-
-
Save louy/8e0618e753394b1229346c6842bc5332 to your computer and use it in GitHub Desktop.
Docker Nginx Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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