Skip to content

Instantly share code, notes, and snippets.

@rochacon
Created August 31, 2014 22:41
Show Gist options
  • Save rochacon/387ee88dceb2644f8119 to your computer and use it in GitHub Desktop.
Save rochacon/387ee88dceb2644f8119 to your computer and use it in GitHub Desktop.
Simple NGINX conf that I use inside Docker containers for testing
daemon off;
worker_processes 1;
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
error_log /dev/stdout info;
default_type application/octet-stream;
include mime.types;
gzip on;
keepalive_timeout 65;
sendfile on;
tcp_nopush on;
server {
listen 80;
server_name localhost;
charset utf-8;
index index.html;
root /usr/local/nginx/html;
try_files $uri $uri/ @default;
location @default {
return 200;
}
location /nginx_status {
stub_status on;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment