打包:兑换两个服务器的域名解析
This commit is contained in:
@@ -51,9 +51,9 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'production': {
|
'production': {
|
||||||
'connector': [
|
'connector': [
|
||||||
{ 'id': 'connector-server-1', 'port': 4050, 'clientHost': 'pinus_test.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true },
|
{ 'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3050, 'frontend': true },
|
||||||
{ 'id': 'connector-server-2', 'port': 4051, 'clientHost': 'pinus_test.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true },
|
{ 'id': 'connector-server-2', 'port': 4051, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3051, 'frontend': true },
|
||||||
{ 'id': 'connector-server-3', 'port': 4052, 'clientHost': 'pinus_test.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true }
|
{ 'id': 'connector-server-3', 'port': 4052, 'clientHost': 'zyz_web.trgame.cn', 'host': '127.0.0.1', 'clientPort': 3052, 'frontend': true }
|
||||||
],
|
],
|
||||||
'chat': [
|
'chat': [
|
||||||
{ 'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050 },
|
{ 'id': 'chat-server-1', 'host': '127.0.0.1', 'port': 6050 },
|
||||||
@@ -65,11 +65,11 @@ module.exports = {
|
|||||||
{ 'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054 }
|
{ 'id': 'battle-server-1', 'host': '127.0.0.1', 'port': 6054 }
|
||||||
],
|
],
|
||||||
'gate': [
|
'gate': [
|
||||||
{ 'id': 'gate-server-1', 'host': '127.0.0.1', 'clientHost': 'pinus_test.trgame.cn', 'clientPort': 3014, 'frontend': true },
|
{ 'id': 'gate-server-1', 'host': '127.0.0.1', 'clientHost': 'zyz_web.trgame.cn', 'clientPort': 3014, 'frontend': true },
|
||||||
{
|
{
|
||||||
'id': 'gate-server-2',
|
'id': 'gate-server-2',
|
||||||
'host': '127.0.0.1',
|
'host': '127.0.0.1',
|
||||||
'clientHost': 'pinus_test.trgame.cn',
|
'clientHost': 'zyz_web.trgame.cn',
|
||||||
'clientPort': 3015,
|
'clientPort': 3015,
|
||||||
'frontend': true
|
'frontend': true
|
||||||
}
|
}
|
||||||
@@ -93,7 +93,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
'alpha': {
|
'alpha': {
|
||||||
'connector': [
|
'connector': [
|
||||||
{ 'id': 'connector-server-1', 'port': 4050, 'clientHost': 'zyz_web.trgame.cn', 'host': '172.26.145.159', 'clientPort': 3050, 'frontend': true },
|
{ 'id': 'connector-server-1', 'port': 4050, 'clientHost': 'pinus_test.trgame.cn', 'host': '172.26.145.159', 'clientPort': 3050, 'frontend': true },
|
||||||
],
|
],
|
||||||
'chat': [
|
'chat': [
|
||||||
{ 'id': 'chat-server-1', 'host': '172.26.145.159', 'port': 6050 },
|
{ 'id': 'chat-server-1', 'host': '172.26.145.159', 'port': 6050 },
|
||||||
@@ -105,7 +105,7 @@ module.exports = {
|
|||||||
{ 'id': 'battle-server-1', 'host': '172.26.145.159', 'port': 6054 }
|
{ 'id': 'battle-server-1', 'host': '172.26.145.159', 'port': 6054 }
|
||||||
],
|
],
|
||||||
'gate': [
|
'gate': [
|
||||||
{ 'id': 'gate-server-1', 'host': '172.26.145.159', 'clientHost': 'zyz_web.trgame.cn', 'clientPort': 3014, 'frontend': true }
|
{ 'id': 'gate-server-1', 'host': '172.26.145.159', 'clientHost': 'pinus_test.trgame.cn', 'clientPort': 3014, 'frontend': true }
|
||||||
],
|
],
|
||||||
'gm': [
|
'gm': [
|
||||||
{ 'id': 'gm-server-1', 'host': '172.26.145.159', 'port': 6055 }
|
{ 'id': 'gm-server-1', 'host': '172.26.145.159', 'port': 6055 }
|
||||||
|
|||||||
@@ -21,12 +21,12 @@ export default (appInfo: EggAppInfo) => {
|
|||||||
config.middleware = [ 'parmsDecode' ];
|
config.middleware = [ 'parmsDecode' ];
|
||||||
|
|
||||||
config.mongoose = {
|
config.mongoose = {
|
||||||
url: 'mongodb://dbop:zyzMon2021@dds-8vb7474e31ba7ed41.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vb7474e31ba7ed42.mongodb.zhangbei.rds.aliyuncs.com:3717/zyz?replicaSet=mgset-505529944', // 内网
|
url: 'mongodb://dbop:zyzdbopbantu@dds-8vbdb47c6fb58a541.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vbdb47c6fb58a542.mongodb.zhangbei.rds.aliyuncs.com:3717/zyz?replicaSet=mgset-500808098', // 内网
|
||||||
options: { useNewUrlParser: true, useUnifiedTopology: true },
|
options: { useNewUrlParser: true, useUnifiedTopology: true },
|
||||||
};
|
};
|
||||||
config.redis = {
|
config.redis = {
|
||||||
url: 'r-8vb130185rp2ir3lqn.redis.zhangbei.rds.aliyuncs.com', // 内网
|
url: 'r-8vb4i2kgl91886fkxd.redis.zhangbei.rds.aliyuncs.com', // 内网
|
||||||
pw: 'zyz_monitor_2021'
|
pw: 'zyz_2020'
|
||||||
};
|
};
|
||||||
|
|
||||||
// config.alinode = {
|
// config.alinode = {
|
||||||
|
|||||||
@@ -25,7 +25,8 @@
|
|||||||
"monitor": "cross-env EGG_SERVER_ENV=monitor npm run dev",
|
"monitor": "cross-env EGG_SERVER_ENV=monitor npm run dev",
|
||||||
"distribute": "cross-env EGG_SERVER_ENV=distribute npm run dev",
|
"distribute": "cross-env EGG_SERVER_ENV=distribute npm run dev",
|
||||||
"lylocal": "cross-env EGG_SERVER_ENV=lylocal npm run dev",
|
"lylocal": "cross-env EGG_SERVER_ENV=lylocal npm run dev",
|
||||||
"alpha": "cross-env EGG_SERVER_ENV=alpha npm run dev"
|
"alpha": "cross-env EGG_SERVER_ENV=alpha npm run dev",
|
||||||
|
"stable": "cross-env EGG_SERVER_ENV=stable npm run dev"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/underscore": "^1.11.3",
|
"@types/underscore": "^1.11.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user