58 lines
1.2 KiB
TypeScript
58 lines
1.2 KiB
TypeScript
/**
|
|
* 鹰眼管控平台 - 开发代理配置
|
|
*/
|
|
const GATEWAY = process.env.GATEWAY_ORIGIN || 'http://localhost:9900';
|
|
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,
|
|
ws: true,
|
|
},
|
|
'/goflymodel': {
|
|
target: 'https://minicdn.goflytec.com',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
pre: {
|
|
'/api-': {
|
|
target: GATEWAY,
|
|
changeOrigin: true,
|
|
ws: true,
|
|
},
|
|
'/goflymodel': {
|
|
target: 'https://minicdn.goflytec.com',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
} as const;
|