nodes.lua 732 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Descripttion:节点配置
  3. version:
  4. Author: Neo,Huang
  5. Date: 2022-07-05 13:40:50
  6. LastEditors: Neo,Huang
  7. LastEditTime: 2022-07-05 13:41:07
  8. --]]
  9. local root = {}
  10. -- master
  11. root["master"] = {
  12. debugPort = 8000,
  13. port = 8001,
  14. agentCount = 1,
  15. bodyLimit = 8192
  16. }
  17. -- 登陆服
  18. root["login_1_1"] = {
  19. ip = "0.0.0.0",
  20. debugPort = 8002,
  21. port = 8003,
  22. agentCount = 5,
  23. bodyLimit = 8192
  24. }
  25. -- 网关
  26. root["gate_1_1"] = {
  27. ip = "8.134.163.21",
  28. debugPort = 8004,
  29. port = 8005,
  30. maxClient = 5000,
  31. nodelay = 1,
  32. protocol = "ws",
  33. weight = 50, -- 权重
  34. wsPort = 8006 -- websocket端口
  35. }
  36. -- 游戏服
  37. root["game_1_1"] = {
  38. debugPort = 8007,
  39. weight = 50 -- 权重
  40. }
  41. return root