Skip to content

Instantly share code, notes, and snippets.

@aug2uag
Forked from Unitech/nginx.conf
Last active December 10, 2017 08:33
Show Gist options
  • Save aug2uag/4b3224dd215739f1be04b5f276774de5 to your computer and use it in GitHub Desktop.
Save aug2uag/4b3224dd215739f1be04b5f276774de5 to your computer and use it in GitHub Desktop.
NGINX/PM2
worker_processes auto;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
tcp_nodelay on;
types_hash_max_size 2048;
server_names_hash_bucket_size 64;
client_body_timeout 60;
client_header_timeout 60;
keepalive_timeout 10 10;
send_timeout 60;
client_max_body_size 20M;
client_header_buffer_size 1k;
large_client_header_buffers 4 4k;
gzip on;
gzip_http_version 1.1;
gzip_comp_level 5;
gzip_vary on;
gzip_proxied any;
gzip_min_length 10;
gzip_buffers 16 8k;
gzip_types text/plain text/css application/json application/x-javascript text/javascript image/png image/gif image/x-icon;
gzip_disable "MSIE [1-6].(?!.*SV1)";
upstream vsapi {
server 127.0.0.1:3010;
keepalive 64;
}
include /etc/nginx/sites-enabled/default;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment