Skip to content

Instantly share code, notes, and snippets.

@lcaballero
Created April 10, 2016 10:51
Show Gist options
  • Save lcaballero/1d912068e22edcb71be024484836afb7 to your computer and use it in GitHub Desktop.
Save lcaballero/1d912068e22edcb71be024484836afb7 to your computer and use it in GitHub Desktop.
Template for a minimal nginx.conf
## Fill in the areas with the [custom] label.
#user nobody;
worker_processes 1;
error_log [custom]/error.log;
events {
worker_connections 1024;
}
http {
include [custom]/mime.types;
gzip on;
gzip_http_version 1.1;
gzip_comp_level 2;
server {
listen 80;
server_name localhost;
access_log [custom]/access.log;
location / {
root [custom]/public;
index index.html index.htm default.html default.htm;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment