-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.yaml
More file actions
27 lines (27 loc) · 951 Bytes
/
app.yaml
File metadata and controls
27 lines (27 loc) · 951 Bytes
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
jwt:
sign_key: "gooooIM"
expire_time: 720 # hour
mysql:
dns: "root:root@tcp(127.0.0.1:3306)/gochat?charset=utf8mb4&parseTime=True&loc=Local"
redis:
addr: "127.0.0.1:6379"
password: ""
app:
salt: "gogogoChat" # 密码加盐
ip: "127.0.0.1"
http_server_port: "9090" # http 端口
websocket_server_port: "9091" # websocket 端口
rpc-port: "9092" # rpc 端口
worker_pool_size: 10 # 业务 worker 队列数量
max_worker_task: 1024 # 业务 worker 队列中,每个 worker 的最大任务存储数量
heartbeattime: 600 # 心跳超时时间 s ,10 * 60
heartbeatInterval: 60 # 超时连接检测间隔 s
etcd:
endpoints: # etcd 端口列表
- "localhost:2379"
timeout: 5 # 超时时间 s
rabbitmq:
url: "amqp://guest:guest@localhost:5672/"
log:
target: "file" # 日志输出路径:可选值 console/file
level: "debug" # 日志输出级别 debug、info、warn、error、dpanic、panic、fatal