73 lines
1.4 KiB
JavaScript
73 lines
1.4 KiB
JavaScript
const path = require('node:path')
|
|
|
|
module.exports = {
|
|
server: {
|
|
port: 3000,
|
|
},
|
|
|
|
browser: {
|
|
chromePath: '',
|
|
headless: null,
|
|
devtools: null,
|
|
keepAlive: null,
|
|
prewarm: null,
|
|
slowMoMs: null,
|
|
},
|
|
|
|
session: {
|
|
debug: false,
|
|
},
|
|
|
|
ocr: {
|
|
projectRoot: path.resolve(__dirname, '../subservices/ocr-worker'),
|
|
},
|
|
|
|
data: {
|
|
root: path.resolve(__dirname, '../data'),
|
|
},
|
|
|
|
database: {
|
|
url: 'postgres://postgres:postgres@127.0.0.1:5432/order_site',
|
|
ssl: false,
|
|
maxConnections: 10,
|
|
},
|
|
|
|
orders: {
|
|
claimBaseUrl: 'http://127.0.0.1:5173/#/claim',
|
|
tokenTtlHours: 24,
|
|
fulfillmentBindings: [],
|
|
},
|
|
|
|
admin: {
|
|
sessionSecret: '',
|
|
sessionTtlHours: 12,
|
|
defaultUsers: [],
|
|
},
|
|
|
|
platforms: {
|
|
agiso: {
|
|
appSecret: '',
|
|
tradeDetail: {
|
|
endpoint: 'https://gw-api.agiso.com/aldsIdle/Order/Detail',
|
|
apiVersion: '1',
|
|
timeoutMs: 5000,
|
|
},
|
|
messaging: {
|
|
enabled: false,
|
|
sendMessageEndpoint: 'https://gw-api.agiso.com/aldsIdle/ImMsg/SendMsg',
|
|
apiVersion: '1',
|
|
authMode: 'bearer',
|
|
appId: '',
|
|
accessToken: '',
|
|
appSecret: '',
|
|
messageTemplate: '您的订单 {platformOrderId} 已创建领取链接,请在 {expiredAt} 前完成领取:{claimUrl}',
|
|
shops: {},
|
|
},
|
|
},
|
|
},
|
|
|
|
redeem: {
|
|
proofMode: 'full',
|
|
},
|
|
}
|