user nginx;
#gzip on;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
multi_accept on;
use epoll;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
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 /var/log/nginx/access.log main;
server_tokens off;
access_log off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
client_body_timeout 10;
send_timeout 2;
keepalive_timeout 30;
reset_timedout_connection on;
client_body_buffer_size 16k;
client_header_buffer_size 1k;
client_max_body_size 0;
large_client_header_buffers 4 8k;
gzip on;
gzip_comp_level 6;
gzip_min_length 500;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/rss+xml
blob
image/*
script
x-icon
image/svg+xml;
gzip_vary on;
add_header alt-svc 'h3-23=":443"; ma=86400';
include /etc/nginx/conf.d/*.conf;
}
728x90