-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf_test.yaml
87 lines (67 loc) · 2.34 KB
/
conf_test.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Proxy Server config
Server:
Name: "Api Gateway"
ListenHost: "0.0.0.0"
ListenPort: 8800
ListenDomainName: []
# entries below will influence server performance, should be keep on default value
# unless you knew about it
# Max concurrent connections the server could deal with.
Concurrency: 262144
# Switch to disable/enable http 1.1 keep-alive support. If true, server will close the connection after
# send the first response
DisabledKeepAlive: false
# Buffer size for reading from request, meanwhile it will limit the request header length.
# Should be increased when the request has a larger header than default value
ReadBufferSize: 8192
# Buffer size for writing response
WriteBufferSize: 8192
# Max length of request body. Request will be rejected when request body larger than this value. (default value 20MB)
MaxRequestBodySize: 20971520
# Switch for reducing memory usage when exists too much keep-alive request. If true, instead of occupying memory,
# cpu-usage will increase
ReduceMemoryUsage: false
# Etcd config
Etcd:
name: "etcd-00"
# Endpoint is a list of URLs
Endpoints: ["127.0.0.1:2379"]
Username: ""
Password: ""
# AutoSyncInterval is the interval to update endpoints with its latest members.
# 0disables auto-sync. By default auto-sync is disabled.
AutoSyncInterval: 0
# DialTimeout is the timeout for failing to establish a connection with etcd.
DialTimeout: 3
# DialKeepAliveTime is the time after which client pings the server to see if transport is still alive.
DialKeepAliveTime: 30
# DialKeepAliveTimeout is the time that the client waits for a response for the keep-alive probe.
# If the response is not received in this time, the connection will be closed.
DialKeepAliveTimeout: 5
# Middleware config
Middleware:
# counter middleware
Counter:
PersistencePeriod: 60
LogDir: /var/log/gw/counter/
Limiter:
DefaultLimit: 5000
DefaultConsumeNumberPerPeriod: 500
DefaultConsumePeriod: 5
MaxLimitChanLength: 10000
BlackList:
- 192.168.1.1
Auth:
Redis:
Host: 127.0.0.1:3379
DB: 0
Password: your password
DashBoard:
Enable: true
ListenHost: "0.0.0.0"
ListenPort: 8801
RoutePrefix: ""
#debug release test
RequestModel: "debug"
# request Authorization,like "Bearer xxx", if empty not check auth
Token: ""