Created
September 14, 2016 10:26
-
-
Save boynoiz/0e28fe4cabdde232d5300ac3eb61759a to your computer and use it in GitHub Desktop.
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; | |
pid /var/run/nginx.pid; | |
worker_rlimit_nofile 10240; | |
events { | |
worker_connections 4096; | |
multi_accept on; | |
use epoll; | |
} | |
http { | |
## | |
# Basic Settings | |
## | |
types_hash_max_size 2048; | |
# server_tokens off; | |
# server_names_hash_bucket_size 64; | |
# server_name_in_redirect off; | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
## | |
# Logging Settings | |
## | |
# access_log /var/log/nginx/access.log main buffer=16k; | |
# access_log off; | |
log_not_found off; | |
error_log /var/log/nginx/error.log; | |
## | |
# Gzip Settings | |
## | |
gzip on; | |
gzip_disable "MSIE [1-6]\."; | |
gzip_vary on; | |
gzip_proxied any; | |
gzip_comp_level 2; | |
gzip_min_length 1024; | |
gzip_proxied expired no-cache no-store private auth; | |
gzip_buffers 4 8k; | |
gzip_http_version 1.1; | |
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; | |
open_file_cache max=2000 inactive=20s; | |
open_file_cache_valid 60s; | |
open_file_cache_min_uses 5; | |
open_file_cache_errors off; | |
client_max_body_size 50M; | |
client_body_buffer_size 64k; | |
client_body_timeout 15; | |
client_header_timeout 15; | |
client_header_buffer_size 64k; | |
large_client_header_buffers 4 64k; | |
keepalive_requests 1024; | |
keepalive_timeout 15; | |
send_timeout 15; | |
sendfile on; | |
tcp_nopush on; | |
tcp_nodelay on; | |
fastcgi_buffers 256 16k; | |
fastcgi_buffer_size 128k; | |
fastcgi_connect_timeout 3s; | |
fastcgi_send_timeout 120s; | |
fastcgi_read_timeout 120s; | |
fastcgi_busy_buffers_size 256k; | |
fastcgi_temp_file_write_size 256k; | |
reset_timedout_connection on; | |
server_names_hash_bucket_size 100; | |
limit_conn_zone $binary_remote_addr zone=addr:10m; | |
limit_conn addr 100; | |
include /etc/nginx/conf.d/*.conf; | |
include /etc/nginx/sites-enabled/*; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment