websocket.test.toml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. environment = "test"
  2. name = "websocket"
  3. port = 10082
  4. [websocket]
  5. connectSize = 1024 # 控制消息 Channel 大小
  6. heartbeatWait = 120 # 心跳超时
  7. messageSize = 256 # 消息 channel 大小
  8. readBufferSize = 1024 # 读消息体最大的 buffersize
  9. readWait = 20 # 读超时
  10. writeBufferSize = 1024 # 写消息体最大的 buffersize
  11. writeWait = 10 # 写超时
  12. natsUrl = "nats://106.75.230.4:4333"
  13. [mysql]
  14. dsn = "root:9RKdJsEQKnjrni9R@tcp(10.23.148.10:3306)/sikey?charset=utf8mb4&parseTime=true&loc=Local"
  15. # Ignore ErrRecordNotFound error for logger
  16. skipDefaultTransaction = true
  17. # Slow SQL threshold
  18. slowThreshold = 600
  19. # Ignore ErrRecordNotFound error for logger
  20. ignoreRecordNotFoundError = true
  21. # 设置空闲连接池中连接的最大数量
  22. maxIdleConns = 10
  23. # 设置连接的有效时长 当 <= 0 时,连接永久保存,默认值时 0 。如果设置了 maxLifetime 会开启连接自动清理,
  24. # 清理的代码在 connectionCleaner 中, 它开启一个定时器,定时检查空闲连接池中的连接,超期的关闭连接。
  25. maxLifetime = -1
  26. # 设置打开数据库连接的最大数量。
  27. maxOpenConns = 100
  28. [redis]
  29. addr = "106.75.230.4:6379"
  30. channel = "message"
  31. connectKey = "connects"
  32. db = 0
  33. password = "sikey!Q@W#E456"
  34. [kafka]
  35. brokers = ["106.75.230.4:9092"]
  36. dualStack = true
  37. maxBytes = 10e6
  38. partition = 0
  39. timeout = 10
  40. topic = "messaging-channel"
  41. [log]
  42. path = "/var/logs/sikey/websocket"
  43. [auth]
  44. secret = "992443c835c347d6a8b7d046d0261671"
  45. [sls]
  46. accessKeyId = "LTAI5tMWjYSHsq3S57pyu2JX"
  47. accessKeySecret = "08aBmJYTtW1VJX1sffUmFwSNvJnN58"
  48. endpoint = "cn-shanghai.log.aliyuncs.com"
  49. logStoreName = "w303b"
  50. projectName = "w303b-test"
  51. sourceIp = "106.75.230.4"
  52. topic = "test"