1 Star 0 Fork 0

QdabuliuQ/QuickChartServer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.js 2.25 KB
一键复制 编辑 原始数据 按行查看 历史
QdabuliuQ 提交于 2024-03-10 20:32 . fix: 修复已知bug
const os = require('os');
const systemType = os.type();
const oss = systemType === 'Linux' ? 'http://106.53.176.226:3031' : 'http://127.0.0.1:3031'
const config = {
port: 3031,
oss,
secret: 'QdabuliuQ',
expiresIn: '24h', // jwt有效期
pattern: {
email: /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/,
phone: /^[1][3,4,5,7,8][0-9]{9}$/,
password: /^[\S]{6,12}$/,
},
limit: 20,
optionReg: new RegExp(`${oss}`, 'g'),
ownEmail: '[email protected]',
SMTPpass: 'ryieaitcaawsdfgh',
privateKey: `
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDEmumvLGO7eOCP
59ZBMkeyyXhW8fccoMjn4w6B5rzdJElvm3zM6Vo5Pwc7vBPlfQT835Fl0qZZINRo
8TVe1alTLEMk1GfE02djBCRaxNrbXOcC6vnM3q1auP8cJmqjiZ2rNS0ChplkCI4K
lJvt+ALGSNmZIHRgkpKlxXuG7cgMR1aNDJxnsI1Lu8SGn3RU/Qf5KiQn2h28Sz0y
TIX8wVJGgwmrFcwzgZ3tx8mBBkoS6ME+CFcyqbq12Zc+N5mfi8hCALvRgZHrGiLN
mYFi0NigQPL1O7+ck5y6dKizU7GKoh90RrmWAPWU2s+VD/6eZ+ievUJGcpcgFv8o
LpeJ0PRzAgMBAAECggEAcH/oahlvdC4F6bKSsjnQNyj72Fyat2H1tGMDwSdEORJz
hw6lCigZPZqoS/EiPXYdbYmMjIRONcAIa4hirsJ6IqK4RRHZ0xHZHhqX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3xMoFVu1Aun79jBSgWvu8oOIxW3oATW/jaDYoqJY3o3
Q/viE0Aku/0PEle5dc5MyqM=
-----END PRIVATE KEY-----
`,
authPath: new Set([
''
])
}
module.exports = config
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/qdabuliuq/QuickChartServer.git
[email protected]:qdabuliuq/QuickChartServer.git
qdabuliuq
QuickChartServer
QuickChartServer
main

搜索帮助