parent
060f6991d6
commit
e035f40d86
@ -0,0 +1,59 @@ |
|||||||
|
# For more information on configuration, see: |
||||||
|
# * Official English Documentation: http://nginx.org/en/docs/ |
||||||
|
# * Official Russian Documentation: http://nginx.org/ru/docs/ |
||||||
|
|
||||||
|
user nginx; |
||||||
|
worker_processes auto; |
||||||
|
error_log /data/log/nginx/error.log; |
||||||
|
pid /run/nginx.pid; |
||||||
|
|
||||||
|
# Load dynamic modules. See /usr/share/nginx/README.dynamic. |
||||||
|
include /usr/share/nginx/modules/*.conf; |
||||||
|
|
||||||
|
worker_rlimit_nofile 51200; |
||||||
|
|
||||||
|
events |
||||||
|
{ |
||||||
|
use epoll; |
||||||
|
worker_connections 51200; |
||||||
|
multi_accept on; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
http { |
||||||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' |
||||||
|
'$status $body_bytes_sent "$http_referer" ' |
||||||
|
'"$http_user_agent" "$http_x_forwarded_for"'; |
||||||
|
|
||||||
|
access_log /data/log/nginx/access.log main; |
||||||
|
|
||||||
|
sendfile on; |
||||||
|
tcp_nopush on; |
||||||
|
tcp_nodelay on; |
||||||
|
keepalive_timeout 65; |
||||||
|
types_hash_max_size 2048; |
||||||
|
|
||||||
|
|
||||||
|
client_max_body_size 100m; |
||||||
|
keepalive_timeout 300; |
||||||
|
|
||||||
|
server_names_hash_bucket_size 512; |
||||||
|
client_header_buffer_size 32k; |
||||||
|
large_client_header_buffers 4 32k; |
||||||
|
|
||||||
|
|
||||||
|
gzip on; |
||||||
|
gzip_min_length 1k; |
||||||
|
gzip_buffers 4 16k; |
||||||
|
gzip_http_version 1.0; |
||||||
|
gzip_comp_level 2; |
||||||
|
gzip_types text/plain application/x-javascript text/css application/xml; |
||||||
|
gzip_vary on; |
||||||
|
gzip_proxied expired no-cache no-store private auth; |
||||||
|
gzip_disable "MSIE [1-6]\."; |
||||||
|
|
||||||
|
include /etc/nginx/mime.types; |
||||||
|
default_type application/octet-stream; |
||||||
|
|
||||||
|
include /etc/nginx/conf.d/*.conf; |
||||||
|
} |
Loading…
Reference in new issue