123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- server:
- logger:
- output: "./logs/output.log"
- max_size: 1
- max_backups: 5
- max_age: 7 # 保留7天的日志
- compress: false
- http:
- addr: 0.0.0.0:8000
- timeout: 60s
- grpc:
- addr: 0.0.0.0:9000
- timeout: 60s
- websocket:
- addr: 0.0.0.0:10000
- keepalive: 600s # 心跳步长,到时见会清理 connection
- writeTimeout: 30s # 写消息的时长
- serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
- registry:
- etcd:
- endpoints:
- - "127.0.0.1:2379"
- secret_key: "01914b3fc77f753ba22e8c241d23bbdf"
- ucloud:
- project_id: "org-nclt2c"
- public_key: "CrTX8Ns0UHJ4cco63pJUKmB9CZH1A6U4iIbp4lMPb"
- private_key: "EcymFVXqE0eBwIN2eJ21Xb9uZcKu109B22SVCGIi5P46z93E9WnHSKG0TOBRihVKm"
- data:
- database:
- driver: mysql
- source: root:9RKdJsEQKnjrni9R@tcp(106.75.230.4:13306)/w303a?parseTime=True&loc=Local
- redis:
- addr: 106.75.230.4:6379
- password: sikey!Q@W#E456
- read_timeout: 0.2s
- write_timeout: 0.2s
- mongo:
- addr: mongodb://root:SKG0TOBRihVKm@106.75.230.4:27017/?maxPoolSize=20
- database: w303a
- rabbit_mq:
- addr: amqp://gosys:gosys@localhost:5672//msg
- queue: "msg_queue"
- serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
- nats:
- addr: nats://127.0.0.1:4222
- messagePushCh: "msg_push"
- messageBroadcastCh: "msg_broadcast"
|