Created
January 25, 2013 17:56
-
-
Save caferrari/4636486 to your computer and use it in GitHub Desktop.
/etc/nginx/nginx.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes 8; | |
worker_rlimit_nofile 32768; | |
error_log /var/log/nginx/error.log; | |
events { | |
worker_connections 512; | |
use epoll; | |
} | |
http { | |
include mime.types; | |
default_type text/plain; | |
charset utf-8; | |
access_log /var/log/nginx/access.log combined; | |
sendfile on; | |
keepalive_timeout 120; | |
tcp_nodelay on; | |
#deny 201.67.112.59; | |
## Compressão | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_comp_level 6; | |
gzip_proxied any; | |
gzip_min_length 0; | |
gzip_buffers 16 8k; | |
gzip_types application/json text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/gif image/jpeg image/png application/x-shockwave-flash; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
#ssl_certificate /etc/nginx/keys/server.crt; | |
#ssl_certificate_key /etc/nginx/keys/server.key; | |
include sites-enabled/*.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment