Skip to content

Instantly share code, notes, and snippets.

@jarvys
Created December 7, 2014 00:47
Show Gist options
  • Save jarvys/6cd0a09f17a7a62ff2b2 to your computer and use it in GitHub Desktop.
Save jarvys/6cd0a09f17a7a62ff2b2 to your computer and use it in GitHub Desktop.
template nginx config file for node web app
server {
listen 80;
server_name smile.limijiaoyin.com;
access_log /var/log/nginx/smile.access.log;
error_log /var/log/nginx/smile.error.log;
client_max_body_size 200m;
keepalive_timeout 9000;
gzip on;
gzip_min_length 1k;
gzip_buffers 16 64k;
gzip_http_version 1.1;
gzip_comp_level 6;
gzip_types text/plain application/x-javascript text/css application/xml text/javascript;
gzip_vary on;
location ~ ^(images|js|css|fonts) {
expires 30d;
root /data/smile/public;
}
location / {
proxy_pass http://localhost:8090;
}
}
~
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment