mirror of
https://github.com/dianping/camel.git
synced 2024-11-10 09:13:26 +08:00
Dengine: add nginx cones
This commit is contained in:
parent
ad5a1661ee
commit
f97919e1da
2 changed files with 75 additions and 0 deletions
51
Dengine/conf/nginx_status.conf
Normal file
51
Dengine/conf/nginx_status.conf
Normal file
|
@ -0,0 +1,51 @@
|
|||
req_status_zone server "$host:$server_addr:$server_port" 10M;
|
||||
check_shm_size 50M;
|
||||
req_status server;
|
||||
|
||||
server {
|
||||
listen 6666;
|
||||
server_name aaabbbccc;
|
||||
|
||||
location /status {
|
||||
check_status;
|
||||
access_log off;
|
||||
# deny all;
|
||||
}
|
||||
|
||||
location /degrade{
|
||||
upstream_degrade_interface;
|
||||
access_log off;
|
||||
# deny all;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 444;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
server_name aaabbbccc;
|
||||
|
||||
location /status {
|
||||
echo "ok";
|
||||
default_type text/plain;
|
||||
access_log off;
|
||||
# deny all;
|
||||
}
|
||||
|
||||
location /reqstatus {
|
||||
req_status_show;
|
||||
access_log off;
|
||||
# deny all;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 444;
|
||||
}
|
||||
|
||||
error_page 404 403 =444 @static;
|
||||
location @static{
|
||||
return 444;
|
||||
}
|
||||
}
|
24
Dengine/conf/proxy.conf
Normal file
24
Dengine/conf/proxy.conf
Normal file
|
@ -0,0 +1,24 @@
|
|||
proxy_upstream_tries 2;
|
||||
server_info off;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
client_max_body_size 20m;
|
||||
client_body_buffer_size 256k;
|
||||
proxy_connect_timeout 90;
|
||||
proxy_send_timeout 90;
|
||||
proxy_read_timeout 90;
|
||||
proxy_buffer_size 128k;
|
||||
proxy_buffers 4 64k;
|
||||
proxy_busy_buffers_size 128k;
|
||||
proxy_temp_file_write_size 128k;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
|
||||
dypp_key_generate off;
|
||||
upstream_degrade_shm_size 20M;
|
||||
upstream_degrade_rate 40;
|
||||
|
||||
#数据到达一定大小flush
|
||||
flush_buffer_size 10k;
|
Loading…
Reference in a new issue