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,11 +1,14 @@
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'
} }
@ -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/': {