2022-11-28 20:36:59 +00:00
|
|
|
load_module /usr/lib/nginx/modules/ngx_stream_module.so;
|
|
|
|
load_module /usr/lib/nginx/modules/ngx_stream_geoip2_module.so;
|
|
|
|
load_module /usr/lib/nginx/modules/ngx_http_geoip2_module.so;
|
|
|
|
|
2020-06-23 14:39:28 +00:00
|
|
|
worker_processes 4;
|
|
|
|
daemon off;
|
|
|
|
|
|
|
|
user root;
|
|
|
|
|
|
|
|
error_log /var/log/nginx/nginx.error.log;
|
|
|
|
|
|
|
|
events {
|
|
|
|
use epoll;
|
2022-11-28 15:37:19 +00:00
|
|
|
worker_connections 8192;
|
|
|
|
multi_accept on;
|
2020-06-23 14:39:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
include upstreams/*;
|
|
|
|
include maps/*;
|
2022-11-28 20:36:59 +00:00
|
|
|
include conf/conf.d/*.conf;
|
|
|
|
|
|
|
|
stream {
|
|
|
|
include conf/stream/*.conf;
|
|
|
|
}
|
|
|
|
|
2020-06-23 14:39:28 +00:00
|
|
|
http {
|
|
|
|
server_names_hash_max_size 2048;
|
|
|
|
log_format post '$remote_addr - $remote_user [$time_local] '
|
|
|
|
'"$request" $status $body_bytes_sent '
|
|
|
|
'"$http_referer" "$http_user_agent" "$request_body"';
|
|
|
|
access_log /var/log/nginx/nginx.access.log;
|
|
|
|
include mime.types;
|
|
|
|
server_tokens off;
|
|
|
|
client_max_body_size 4g;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
server_names_hash_bucket_size 64;
|
|
|
|
# push_stream_shared_memory_size 512k;
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
keepalive_timeout 4;
|
|
|
|
tcp_nodelay on;
|
|
|
|
gzip on;
|
|
|
|
gzip_static always;
|
|
|
|
gzip_proxied any;
|
|
|
|
gzip_min_length 1100;
|
|
|
|
gzip_http_version 1.1;
|
|
|
|
gzip_buffers 4 8k;
|
|
|
|
gzip_comp_level 7;
|
|
|
|
gzip_types text/plain text/css application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
include conf/hosts/*.conf;
|
|
|
|
}
|
|
|
|
|