feat: 3d控制指令

This commit is contained in:
2025-12-16 11:43:37 +08:00
parent 4921ab15ce
commit cb912a8c60
23 changed files with 1258 additions and 401 deletions
+31 -1
View File
@@ -3,18 +3,48 @@
* - 统一网关转发:仅代理 /api- 前缀到网关(/api-user、/api-uaa 等)
* - 生产环境由网关/容器转发,此文件不生效
*/
const GATEWAY = process.env.GATEWAY_ORIGIN || 'http://127.0.0.1:9900';
const GATEWAY = process.env.GATEWAY_ORIGIN || 'http://192.168.2.214:9900';
// SRS流媒体服务器地址
const SRS_SERVER = process.env.SRS_SERVER || 'http://220.205.16.27:8024';
export default {
dev: {
// 单一规则覆盖所有微服务前缀:/api-*
'/api-': { target: GATEWAY, changeOrigin: true },
// 3D模型CDN代理 - 解决跨域问题
'/goflymodel': {
target: 'https://minicdn.goflytec.com',
changeOrigin: true,
secure: false,
},
// SRS WebRTC WHEP 视频流代理
'/rtc': {
target: SRS_SERVER,
changeOrigin: true,
secure: false,
},
// SRS 登录认证接口代理
'/terraform': {
target: SRS_SERVER,
changeOrigin: true,
secure: false,
},
},
test: {
'/api-': { target: GATEWAY, changeOrigin: true },
'/goflymodel': {
target: 'https://minicdn.goflytec.com',
changeOrigin: true,
secure: false,
},
},
pre: {
'/api-': { target: GATEWAY, changeOrigin: true },
'/goflymodel': {
target: 'https://minicdn.goflytec.com',
changeOrigin: true,
secure: false,
},
},
} as const;