pull/218/head
Li Lingfeng 2022-08-30 03:41:17 +00:00
parent fc0821fc9c
commit 67c3e4db90
2 changed files with 17762 additions and 249 deletions

17510
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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/': {