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