-
Notifications
You must be signed in to change notification settings - Fork 43
/
config.example.yaml
106 lines (106 loc) · 2.03 KB
/
config.example.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
web:
http:
server:
port: "80"
chat:
http:
server:
port: "80"
maxConn: 200
swag: true
grpc:
server:
port: "4000"
client:
user:
endpoint: "localhost:4001"
forwarder:
endpoint: "localhost:4002"
subscriber:
id: mychatserver
message:
maxNum: 5000
paginationNum: 5000
maxSizeByte: 4096
jwt:
secret: mysecret
expirationSecond: 86400
forwarder:
grpc:
server:
port: "4002"
match:
http:
server:
port: "80"
maxConn: 200
swag: true
grpc:
client:
chat:
endpoint: "localhost:4000"
user:
endpoint: "localhost:4001"
uploader:
http:
server:
port: "80"
swag: true
maxBodyByte: 67108864
maxMemoryByte: 16777216
s3:
endpoint: http://localhost:9000
region: us-east-1
bucket: myfilebucket
accessKey: testaccesskey
secretKey: testsecret
presignLifetimeSecond: 86400
rateLimit:
channelUpload:
rps: 200
burst: 50
user:
http:
server:
port: "80"
swag: true
grpc:
server:
port: "4001"
oauth:
cookie:
maxAge: 3600
path: "/"
domain: "localhost"
google:
redirectUrl: "http://localhost/api/user/oauth2/google/callback"
clientId: ""
clientSecret: ""
scopes: "https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/userinfo.profile"
auth:
cookie:
maxAge: 86400
path: "/"
domain: "localhost"
kafka:
addrs: kafka-0:9092,kafka-1:9092,kafka-2:9092
version: "3.0.1"
cassandra:
hosts: cassandra-host-0,cassandra-host-1,cassandra-host-2
port: 9042
user: cassandra
password: cassandra
keyspace: randomchat
redis:
password: pass.123
addrs: redis-node-0:6379,redis-node-1:6379,redis-node-2:6379
expirationHour: 24
minIdleConn: 30
poolSize: 500
readTimeoutMilliSecond: 500
writeTimeoutMilliSecond: 500
observability:
prometheus:
port: "8080"
tracing:
jaegerUrl: "http://localhost:14268/api/traces"