12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /*
- * @Descripttion:
- * @version:
- * @Author: wt
- * @Date: 2023-01-29 13:14:08
- * @LastEditors: wt
- * @LastEditTime: 2023-04-14 19:25:59
- */
- "use strict";
- // 跨域请求设置,可配置多个
- module.exports = {
- port: 81,
- //localhost: '172.16.120.200',
- // 本地配置ip访问(手机可通过IP访问),需要修改成本地Ip地址
- localhost: "172.200.50.18",
- table: {
- "/prod-api": {
- // target: 'http://32.0.15.107:8080/prod-api', //线上-107测试服务器
- target: 'https://mhxfzd.shmh.gov.cn/prod-api', //线上-8083测试服务器
- // target: 'http://10.236.244.108:80/prod-api', //线上-8083测试服务器
- // target: "http://park.usky.cn/prod-api", //线上-20正式服务器
- // target: 'http://172.16.120.165:801/dev-api', //165
- // target: 'http://32.0.15.107:8080/api/', //闵行线上发布时
- // ws: true, // 代理websockets
- changeOrigin: true,
- pathRewrite: {
- //'^/api1' 是一个正则表达式,作用:将 /api1 提换成为 /
- "^/prod-api": "/",
- },
- },
- "/api": { //和mhapi互换
- // 原有api
- // target: 'http://32.0.15.107:8080/api/', //杨强闵行
- // target: 'http://32.0.15.107:8080/api',
- // target: 'http://10.236.244.108:80/api',
- target: 'https://mhxfzd.shmh.gov.cn/api',
- ws: true, // 代理websockets
- changeOrigin: true,
- pathRewrite: {
- //'^/api' 是一个正则表达式,作用:将 /api 提换成为 /
- "^/api": "/",
- },
- },
- // "/mhapi": {//和api互换
- // // target: "http://172.16.120.165:13200/mhapi", //165
- // // target: "http://park.usky.cn/mhapi", //20
- // target: "http://32.0.15.107:8080/mhapi", //107
- // ws: true, // 代理websockets
- // changeOrigin: true,
- // pathRewrite: {
- // //'^/api4' 是一个正则表达式,作用:将 /api4 提换成为 /
- // "^/mhapi": "/",
- // },
- "/video-api": {
- // 执法仪视频
- // target: "http://10.107.31.215:50080/video-api",
- target: "https://mhxfzd.shmh.gov.cn/video-api",
- ws: true, // 代理websockets
- changeOrigin: true,
- pathRewrite: {
- //'^/api' 是一个正则表达式,作用:将 /api 提换成为 /
- "^/video-api": "/",
- },
- },
- "/video": {
- // 执法仪视频
- target: "http://32.0.15.107:8080/video-api",
- ws: true, // 代理websockets
- changeOrigin: true,
- pathRewrite: {
- //'^/api' 是一个正则表达式,作用:将 /api 提换成为 /
- "^/video": "/",
- },
- },
- }
- };
|