config.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. server:
  2. logger:
  3. output: "./logs/output.log"
  4. max_size: 1
  5. max_backups: 5
  6. max_age: 7 # 保留7天的日志
  7. compress: false
  8. http:
  9. addr: 0.0.0.0:8000
  10. timeout: 60s
  11. grpc:
  12. addr: 0.0.0.0:9000
  13. timeout: 60s
  14. websocket:
  15. addr: 0.0.0.0:10000
  16. keepalive: 600s # 心跳步长,到时见会清理 connection
  17. writeTimeout: 30s # 写消息的时长
  18. serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
  19. registry:
  20. etcd:
  21. endpoints:
  22. - "127.0.0.1:2379"
  23. secret_key: "01914b3fc77f753ba22e8c241d23bbdf"
  24. ucloud:
  25. project_id: "org-nclt2c"
  26. public_key: "CrTX8Ns0UHJ4cco63pJUKmB9CZH1A6U4iIbp4lMPb"
  27. private_key: "EcymFVXqE0eBwIN2eJ21Xb9uZcKu109B22SVCGIi5P46z93E9WnHSKG0TOBRihVKm"
  28. data:
  29. database:
  30. driver: mysql
  31. source: root:9RKdJsEQKnjrni9R@tcp(106.75.230.4:13306)/w303a?parseTime=True&loc=Local
  32. redis:
  33. addr: 106.75.230.4:6379
  34. password: sikey!Q@W#E456
  35. read_timeout: 0.2s
  36. write_timeout: 0.2s
  37. mongo:
  38. addr: mongodb://root:SKG0TOBRihVKm@106.75.230.4:27017/?maxPoolSize=20
  39. database: w303a
  40. rabbit_mq:
  41. addr: amqp://gosys:gosys@localhost:5672//msg
  42. queue: "msg_queue"
  43. serverId: 0191b189-2cce-71b0-9737-1ec7270668ee
  44. nats:
  45. addr: nats://127.0.0.1:4222
  46. messagePushCh: "msg_push"
  47. messageBroadcastCh: "msg_broadcast"