移除github.com的下载加速重定向,因为已经有油猴脚本了。

pull/299/head
王良 2024-04-17 10:58:49 +08:00
parent 5af8874606
commit bba404ae40
1 changed files with 9 additions and 10 deletions

View File

@ -52,13 +52,16 @@ module.exports = {
}, },
intercepts: { intercepts: {
'github.com': { 'github.com': {
'/.*/.*/releases/download/': { '.*': {
redirect: 'gh.api.99988866.xyz/https://github.com', sni: 'baidu.com'
desc: 'release文件加速下载跳转地址'
},
'/.*/.*/archive/': {
redirect: 'gh.api.99988866.xyz/https://github.com'
}, },
// '/.*/.*/releases/download/': {
// redirect: 'gh.api.99988866.xyz/https://github.com',
// desc: 'release文件加速下载跳转地址'
// },
// '/.*/.*/archive/': {
// redirect: 'gh.api.99988866.xyz/https://github.com'
// },
// 以下代理地址不支持该类资源的代理,暂时注释掉 // 以下代理地址不支持该类资源的代理,暂时注释掉
// '/.*/.*/blame/': { // '/.*/.*/blame/': {
// redirect: 'gh.api.99988866.xyz/https://github.com' // redirect: 'gh.api.99988866.xyz/https://github.com'
@ -69,10 +72,6 @@ module.exports = {
], ],
desc: '油猴脚本:高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载、添加 git clone 命令' desc: '油猴脚本:高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载、添加 git clone 命令'
}, },
'.*': {
desc: '目前禁掉sni就可以直接访问如果后续github.com的ip被封锁只能再走proxy模式',
sni: 'baidu.com'
},
'/fluidicon.png': { '/fluidicon.png': {
cacheDays: 365, cacheDays: 365,
desc: 'Github那只猫的图片缓存1年' desc: 'Github那只猫的图片缓存1年'