nodes.lua 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 = 8100,
  13. port = 8101,
  14. agentCount = 1,
  15. bodyLimit = 8192
  16. }
  17. root["global"] = {
  18. debugPort = 8102
  19. }
  20. root["resource"] = {
  21. debugPort = 8103
  22. }
  23. root["match"] = {
  24. debugPort = 8104
  25. }
  26. -- 登陆服
  27. root["login_1_1"] = {
  28. ip = "0.0.0.0",
  29. debugPort = 8105,
  30. port = 8106,
  31. agentCount = 5,
  32. bodyLimit = 8192
  33. }
  34. -- 网关
  35. root["gate_1_1"] = {
  36. ip = "8.134.163.21",
  37. debugPort = 8107,
  38. port = 8108,
  39. maxClient = 5000,
  40. nodelay = 1,
  41. protocol = "ws",
  42. weight = 50, -- 权重
  43. wsPort = 8109 -- websocket端口
  44. }
  45. -- 游戏服
  46. root["game_1_1"] = {
  47. debugPort = 8110,
  48. weight = 50 -- 权重
  49. }
  50. root["web"] = {
  51. ip = "0.0.0.0",
  52. debugPort = 8111,
  53. port = 8112,
  54. agentCount = 5,
  55. bodyLimit = 8192
  56. }
  57. return root