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.
57 lines
1.5 KiB
57 lines
1.5 KiB
worker_processes 4;
|
|
worker_rlimit_nofile 65535;
|
|
user root root;
|
|
|
|
events {
|
|
use epoll;
|
|
worker_connections 65535;
|
|
}
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
server_tokens off;
|
|
|
|
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;
|
|
|
|
sendfile on;
|
|
keepalive_timeout 60;
|
|
tcp_nopush on;
|
|
send_timeout 60;
|
|
tcp_nodelay on;
|
|
gzip on;
|
|
gzip_disable "msie6";
|
|
gzip_proxied any;
|
|
gzip_min_length 1000;
|
|
gzip_comp_level 6;
|
|
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
gzip_vary on;
|
|
open_file_cache max=204800 inactive=20s;
|
|
open_file_cache_min_uses 1;
|
|
open_file_cache_valid 30s;
|
|
|
|
client_header_buffer_size 128k;
|
|
large_client_header_buffers 4 128k;
|
|
fastcgi_intercept_errors on;
|
|
fastcgi_connect_timeout 60;
|
|
#fastcgi_buffer_size 128k;
|
|
client_max_body_size 1024m;
|
|
# proxy_send_timeout 7200;
|
|
proxy_read_timeout 7200;
|
|
upstream zz-web {
|
|
hash $request_uri;
|
|
server trip:8080 weight=5; # tomcat
|
|
}
|
|
|
|
include conf.d/*.conf;
|
|
server {
|
|
server_name _;
|
|
return 404;
|
|
#access_log on;
|
|
}
|
|
}
|
|
|