forked from opencurve/curve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
50 lines (39 loc) · 1.33 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- mode: nginx -*-
# vim: set expandtab tabstop=4 shiftwidth=4:
worker_processes 4;
pid ${prefix}/logs/nginx.pid;
events {
worker_connections 65535;
}
http {
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", "$http_range", "$request_time" '
'"$upstream_addr" "-" "-" "-" ';
access_log ${prefix}/logs/access.log main;
error_log ${prefix}/logs/error.log;
sendfile on;
keepalive_timeout 65;
send_timeout 60;
proxy_read_timeout 60;
proxy_send_timeout 60;
proxy_connect_timeout 1;
proxy_max_temp_file_size 0m;
client_header_buffer_size 4k;
large_client_header_buffers 8 16k;
client_body_buffer_size 128k;
client_max_body_size 200m;
port_in_redirect off;
resolver 119.29.29.29 223.5.5.5 valid=1s;
resolver_timeout 5s;
server {
listen ${service_addr}:${service_proxy_port};
location / {
proxy_pass http://curvebs.163.com;
}
}
upstream curvebs.163.com {
${cluster_snapshotclone_nginx_upstream}
}
}