From 33f95d46cac2f278dac8a0b108ed12fd9a1739c5 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 30 Dec 2021 16:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=EF=BC=9A37=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=9C=8D=E5=90=8E=E5=8F=B0game-server=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/config/master.ts | 7 ++++++- game-server/config/servers.ts | 37 ++++++++++++++++++++--------------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/game-server/config/master.ts b/game-server/config/master.ts index 8d0e54185..b67248db0 100644 --- a/game-server/config/master.ts +++ b/game-server/config/master.ts @@ -41,7 +41,12 @@ module.exports = { }, 'sq1': { 'id': 'master-server-1', - 'host': '127.0.0.1', + 'host': '172.16.4.108', + 'port': 3005 + }, + 'sq2': { + 'id': 'master-server-1', + 'host': '172.16.4.108', 'port': 3005 } }; \ No newline at end of file diff --git a/game-server/config/servers.ts b/game-server/config/servers.ts index 2c71282bd..14523097c 100644 --- a/game-server/config/servers.ts +++ b/game-server/config/servers.ts @@ -239,40 +239,45 @@ module.exports = { }, 'sq1': { 'connector': [ - { 'id': 'connector-server-1', 'port': 4050, 'clientHost': '8.142.77.11', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true }, - { 'id': 'connector-server-2', 'port': 4051, 'clientHost': '8.142.77.11', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true }, - { 'id': 'connector-server-3', 'port': 4052, 'clientHost': '8.142.77.11', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true }, + { 'id': 'connector-server-1', 'port': 4050, 'clientHost': '8.142.77.11', 'host': '172.16.4.108', 'clientPort': 3050, 'frontend': true }, + { 'id': 'connector-server-2', 'port': 4051, 'clientHost': '8.142.77.11', 'host': '172.16.4.108', 'clientPort': 3051, 'frontend': true }, + { 'id': 'connector-server-3', 'port': 4052, 'clientHost': '8.142.77.11', 'host': '172.16.4.108', 'clientPort': 3052, 'frontend': true }, ], 'chat': [ - { 'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050 }, + { 'id': 'chat-server-1', 'host': '172.16.4.108', 'port': 6050 }, ], 'role': [ - { 'id': 'role-server-1', 'host': '127.0.0.1', 'port': 6053 }, - { 'id': 'role-server-2', 'host': '127.0.0.1', 'port': 6061 }, - { 'id': 'role-server-3', 'host': '127.0.0.1', 'port': 6062 }, + { 'id': 'role-server-1', 'host': '172.16.4.108', 'port': 6053 }, + { 'id': 'role-server-2', 'host': '172.16.4.108', 'port': 6061 }, + { 'id': 'role-server-3', 'host': '172.16.4.108', 'port': 6062 }, ], 'battle': [ - { 'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054 } + { 'id': 'battle-server-1', 'host': '172.16.4.108', 'port': 6054 } ], 'gate': [ - { 'id': 'gate-server-1', 'host': '127.0.0.1', 'clientHost': '8.142.77.11', 'clientPort': 3014, 'frontend': true }, - { 'id': 'gate-server-2', 'host': '127.0.0.1', 'clientHost': '8.142.77.11', 'clientPort': 3015, 'frontend': true } + { 'id': 'gate-server-1', 'host': '172.16.4.108', 'clientHost': '8.142.77.11', 'clientPort': 3014, 'frontend': true }, + { 'id': 'gate-server-2', 'host': '172.16.4.108', 'clientHost': '8.142.77.11', 'clientPort': 3015, 'frontend': true } ], 'gm': [ - { 'id': 'gm-server-1', 'host': '127.0.0.1', 'port': 6055 } + { 'id': 'gm-server-1', 'host': '172.16.4.108', 'port': 6055 } ], 'systimer': [ - { 'id': 'systimer-server-1', 'host': '127.0.0.1', 'port': 6056 } + { 'id': 'systimer-server-1', 'host': '172.16.4.108', 'port': 6056 } ], 'guild': [ - { 'id': 'guild-server-1', 'host': '127.0.0.1', 'port': 6057, "args": " --inspect=9239" }, - { 'id': 'guild-server-2', 'host': '127.0.0.1', 'port': 6058, "args": " --inspect=9240" } + { 'id': 'guild-server-1', 'host': '172.16.4.108', 'port': 6057, "args": " --inspect=9239" }, + { 'id': 'guild-server-2', 'host': '172.16.4.108', 'port': 6058, "args": " --inspect=9240" } ], 'activity': [ - { 'id': 'activity-server-1', 'host': '127.0.0.1', 'port': 6059, "args": " --inspect=9241" }, + { 'id': 'activity-server-1', 'host': '172.16.4.108', 'port': 6059, "args": " --inspect=9241" }, ], 'order': [ - { 'id': 'order-server-1', 'host': '127.0.0.1', 'port': 6060, "args": " --inspect=9242" }, + { 'id': 'order-server-1', 'host': '172.16.4.108', 'port': 6060, "args": " --inspect=9242" }, ] }, + 'sq2': { + 'connector': [ + { 'id': 'connector-server-gm', 'port': 4099, 'clientHost': '39.103.207.209', 'host': '172.16.4.108', 'clientPort': 3099, 'frontend': true, 'isGM': true } + ], + }, };