|
@@ -145,16 +145,24 @@ module.exports = {
|
|
},
|
|
},
|
|
devServer :{
|
|
devServer :{
|
|
proxy: {
|
|
proxy: {
|
|
- '/git': {
|
|
|
|
|
|
+ '/gogs': {
|
|
target: 'http://39.106.8.246:3003',
|
|
target: 'http://39.106.8.246:3003',
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
secure: false,
|
|
secure: false,
|
|
pathRewrite: {
|
|
pathRewrite: {
|
|
- '^/git': '',
|
|
|
|
|
|
+ '^/gogs': '',
|
|
},
|
|
},
|
|
bypass: function(req, res, proxyOptions) {
|
|
bypass: function(req, res, proxyOptions) {
|
|
req.headers["Authorization"] = "Basic bGJzbDoyMDIwMDgyOQ=="
|
|
req.headers["Authorization"] = "Basic bGJzbDoyMDIwMDgyOQ=="
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ '/datacenter': {
|
|
|
|
+ target: 'http://localhost:8080/',
|
|
|
|
+ changeOrigin: true,
|
|
|
|
+ secure: false,
|
|
|
|
+ pathRewrite: {
|
|
|
|
+ '^/datacenter': '',
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|