You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.5 KiB
63 lines
1.5 KiB
2 months ago
|
#user nobody;
|
||
|
worker_processes auto;
|
||
|
|
||
|
#error_log logs/error.log;
|
||
|
#error_log logs/error.log notice;
|
||
|
#error_log logs/error.log info;
|
||
|
|
||
|
#pid run/nginx.pid;
|
||
|
|
||
|
|
||
|
events {
|
||
|
worker_connections 32768;
|
||
|
accept_mutex off;
|
||
|
multi_accept on;
|
||
|
use epoll;
|
||
|
}
|
||
|
|
||
|
|
||
|
http {
|
||
|
include 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 logs/access.log main;
|
||
|
|
||
|
log_format logstash '$http_host $server_addr $remote_addr [$time_local] "$request" '
|
||
|
'$request_body $status $body_bytes_sent "$http_referer" "$http_user_agent" '
|
||
|
'$request_time $upstream_response_time $http_x_user_sn $http_x_log_id';
|
||
|
#tcp_nopush on;
|
||
|
|
||
|
sendfile off;
|
||
|
|
||
|
keepalive_timeout 5;
|
||
|
keepalive_requests 500;
|
||
|
|
||
|
client_header_timeout 10;
|
||
|
client_body_timeout 10;
|
||
|
reset_timedout_connection on;
|
||
|
send_timeout 10;
|
||
|
|
||
|
limit_conn_zone $binary_remote_addr zone=addr:5m;
|
||
|
limit_conn addr 500;
|
||
|
|
||
|
gzip on;
|
||
|
gzip_disable "msie6";
|
||
|
gzip_proxied any;
|
||
|
gzip_min_length 1000;
|
||
|
gzip_comp_level 6;
|
||
|
gzip_types text/plain text/css application
|
||
|
|
||
|
#keepalive_timeout 0;
|
||
|
client_max_body_size 100m;
|
||
|
|
||
|
server_tokens off;
|
||
|
|
||
|
include /etc/nginx/sites-enabled/*;
|
||
|
}
|
||
|
#daemon off;
|
||
|
|