Issue #214
parent
fc0821fc9c
commit
67c3e4db90
File diff suppressed because it is too large
Load Diff
|
@ -1,12 +1,15 @@
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
function getUserBasePath () {
|
|
||||||
|
function getUserBasePath() {
|
||||||
const userHome = process.env.USERPROFILE || process.env.HOME || '/'
|
const userHome = process.env.USERPROFILE || process.env.HOME || '/'
|
||||||
return path.resolve(userHome, './.dev-sidecar')
|
return path.resolve(userHome, './.dev-sidecar')
|
||||||
}
|
}
|
||||||
function getRootCaCertPath () {
|
|
||||||
|
function getRootCaCertPath() {
|
||||||
return getUserBasePath() + '/dev-sidecar.ca.crt'
|
return getUserBasePath() + '/dev-sidecar.ca.crt'
|
||||||
}
|
}
|
||||||
function getRootCaKeyPath () {
|
|
||||||
|
function getRootCaKeyPath() {
|
||||||
return getUserBasePath() + '/dev-sidecar.ca.key.pem'
|
return getUserBasePath() + '/dev-sidecar.ca.key.pem'
|
||||||
}
|
}
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
@ -48,7 +51,7 @@ module.exports = {
|
||||||
intercepts: {
|
intercepts: {
|
||||||
'github.com': {
|
'github.com': {
|
||||||
'/.*/.*/releases/download/': {
|
'/.*/.*/releases/download/': {
|
||||||
redirect: 'download.fastgit.org',
|
"redirect": "ghproxy.com/https://github.com/",
|
||||||
desc: 'release文件加速下载跳转地址'
|
desc: 'release文件加速下载跳转地址'
|
||||||
},
|
},
|
||||||
'/.*/.*/archive/': {
|
'/.*/.*/archive/': {
|
||||||
|
|
Loading…
Reference in New Issue