🐎 ci(服务器): 添加永测服

This commit is contained in:
luying
2023-08-03 10:37:41 +08:00
parent e2648b21ea
commit aa02cd48ad
10 changed files with 380 additions and 3 deletions

View File

@@ -0,0 +1,56 @@
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
import defaultConfig from './config.default';
export default (appInfo: EggAppInfo) => {
const config = {} as PowerPartial<EggAppConfig>;
config.middleware = [ 'parmsDecode', 'getIp', 'proxy' ];
config.mongoose = {
url: 'mongodb://yjzDbOp:yjz2023ZyDb@dds-8vba9fd556eda4742.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vba9fd556eda4741.mongodb.zhangbei.rds.aliyuncs.com:3717/zyz?replicaSet=mgset-516347208', // 内网
options: { useNewUrlParser: true, useUnifiedTopology: true },
};
config.gmmongoose = {
url: 'mongodb://yjzGmDbOp:yjz2023ZyGmDB@dds-8vbdf8c89bbdbd241.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vbdf8c89bbdbd242.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vbdf8c89bbdbd243.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vbdf8c89bbdbd244.mongodb.zhangbei.rds.aliyuncs.com:3717/zyzgm?replicaSet=mgset-515829436', // 内网
options: { useNewUrlParser: true, useUnifiedTopology: true },
};
config.submongoose = {
url: 'mongodb://yjzDbOp:yjz2023ZyDb@dds-8vba9fd556eda4742.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vba9fd556eda4741.mongodb.zhangbei.rds.aliyuncs.com:3717/zyz?replicaSet=mgset-516347208', // 内网
options: { useNewUrlParser: true, useUnifiedTopology: true },
};
config.redis = {
url: 'r-8vbl4pz5gqqgfbnwtb.redis.zhangbei.rds.aliyuncs.com', // 内网
pw: 'hWCJ$HDajm9SN&&Z'
};
config.xtransit = {
server: 'ws://172.16.4.147:9092',
appId: 2,
appSecret: '700e3bc3e55236f31ea52780041ac039'
};
config.customLogger = {
linkLogger: {
file: '/zyz_logs/web-server/link-log.log',
formatter(meta) {
return `[${meta.level}] [${meta.date}] ${meta.message}`;
},
},
};
config.logrotator = {
filesRotateBySize: [
'/zyz_logs/web-server/link-log.log',
],
maxFileSize: 1024 * 1024 * 1024,
};
// the return config will combines to EggAppConfig
return {
...defaultConfig(appInfo),
...config
};
};