Skip to content

Instantly share code, notes, and snippets.

@phobal
Created September 5, 2019 14:02
Show Gist options
  • Select an option

  • Save phobal/329de75ceea189020d7d70549799623d to your computer and use it in GitHub Desktop.

Select an option

Save phobal/329de75ceea189020d7d70549799623d to your computer and use it in GitHub Desktop.
x-switch 配置
{
// Use IntelliSense to learn about possible links.
// Type `rule` to quick insert rule.
// 输入 rule 来快速插入规则
// For more information, visit: https://github.com/yize/xswitch
"proxy": [
// gitlab IP 代理
[
"http://172.16.17.29",
"http://172.16.11.30:3001"
],
// gitlab 域名 代理
[
"http://wyny.gitlab.cn",
"http://172.16.11.30:3001"
],
// 容器化 CI/CD 域名代理
[
"http://ci.docker.cn",
"http://172.16.11.68:7989"
],
// 园区项目后台 容器地址
[
"http://admin.pack.cn",
"http://172.16.11.85:35074"
],
// 园区项目前台 容器地址
[
"http://pack.cn",
"http://172.16.11.85:35080"
],
// 园区 swagger
[
"http://pack.swagger.cn",
"http://172.16.11.85:35080/api/v1/wisdom-park/swagger-ui.html"
],
// 原型域名代理
[
"http://yuanxing.cn",
"http://pm.in.chinawyny.com"
],
// 原型域名代理
[
"http://park.design.cn",
"https://lanhuapp.com/web/#/item?fid=all&tid=2dd56d69-065f-4c00-b238-35e33ccdc0de"
],
// 前端内网 npm
[
"http://npm.wyny.cn",
"http://172.16.11.82:4873"
],
],
// urls that want CORS
"cors": [
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment