feat: 调整api

This commit is contained in:
zdl
2025-11-11 19:00:02 +08:00
parent ccf1d1c0a6
commit 1b7bec47ee

View File

@@ -264,11 +264,26 @@ module.exports = {
pathRewrite: { '^/concept-api': '' }, pathRewrite: { '^/concept-api': '' },
}, },
'/bytedesk-api': { '/bytedesk-api': {
target: 'http://43.143.189.195', target: 'https://valuefrontier.cn', // 统一使用生产环境 Nginx 代理
changeOrigin: true, changeOrigin: true,
secure: false, secure: false, // 开发环境禁用 HTTPS 严格验证
logLevel: 'debug', logLevel: 'debug',
pathRewrite: { '^/bytedesk-api': '' }, ws: true, // 支持 WebSocket
// 不使用 pathRewrite保留 /bytedesk-api 前缀,让生产 Nginx 处理
},
'/chat': {
target: 'https://valuefrontier.cn/bytedesk-api', // Bytedesk iframe 内部的资源SDK、CSS等
changeOrigin: true,
secure: false, // 开发环境禁用 HTTPS 严格验证
logLevel: 'debug',
// 保留 /chat 路径
},
'/config': {
target: 'https://valuefrontier.cn/bytedesk-api', // Bytedesk 配置接口
changeOrigin: true,
secure: false, // 开发环境禁用 HTTPS 严格验证
logLevel: 'debug',
// 保留 /config 路径
}, },
}, },
}), }),