Skip to content

Instantly share code, notes, and snippets.

Last active April 17, 2017 00:22
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save matthutchinson/5815393 to your computer and use it in GitHub Desktop.
# /usr/local/etc/nginx/nginx.conf
worker_processes 4;
events {
worker_connections 1024;
http {
include mime.types;
default_type application/octet-stream;
# tcp
sendfile on;
tcp_nopush on;
tcp_nodelay off;
keepalive_timeout 65;
# timeouts
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
# max buffers
client_max_body_size 50m;
client_header_buffer_size 1k;
large_client_header_buffers 4 4k;
# gzip settings
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_min_length 512;
gzip_buffers 256 8k;
gzip_comp_level 3;
gzip_proxied any;
gzip_http_version 1.0;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
server_tokens off;
# sites
include /usr/local/etc/nginx/sites-enabled/*;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment