forked from alibaba/nginx-tfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.conf
69 lines (46 loc) · 1.5 KB
/
example.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#user nobody;
worker_processes 8;
error_log logs/error.log warn;
#error_log "pipe:/usr/sbin/cronolog /path/to/nginx/logs/cronolog/%Y/%m/%Y-%m-%d-error.log" warn;
#pid logs/nginx.pid;
#daemon off;
events {
worker_connections 10240;
}
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;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip off;
# ns_addr
tfs_upstream 10.0.0.1:8108;
# rcs_addr
#tfs_upstream 10.0.0.1:7200;
#tfs_rcs_zone size=128M;
tfs_block_cache_zone size=256M;
tfs_send_timeout 3s;
tfs_connect_timeout 3s;
tfs_read_timeout 3s;
tfs_body_buffer_size 2m;
server {
listen 7500;
server_name localhost;
client_max_body_size 40960m;
#charset koi8-r;
#access_log "pipe:/usr/sbin/cronolog /path/to/nginx/logs/cronolog/%Y/%m/%Y-%m-%d-access.log";
tfs_keepalive max_cached=100 bucket_count=10;
#tfs_tackle_log "pipe:/usr/sbin/cronolog -p 30min /path/to/nginx/logs/cronolog/%Y/%m/%Y-%m-%d-%H-%M-tfs_access.log";
tfs_net_device eth0;
tfs_enable_rcs off;
location / {
tfs_pass enable=1;
}
}
}