Skip to content

Commit

Permalink
移除github.com的下载加速重定向,因为已经有油猴脚本了。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Apr 17, 2024
1 parent 5af8874 commit bba404a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions packages/core/src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ module.exports = {
},
intercepts: {
'github.com': {
'/.*/.*/releases/download/': {
redirect: 'gh.api.99988866.xyz/https://github.com',
desc: 'release文件加速下载跳转地址'
},
'/.*/.*/archive/': {
redirect: 'gh.api.99988866.xyz/https://github.com'
'.*': {
sni: 'baidu.com'
},
// '/.*/.*/releases/download/': {
// redirect: 'gh.api.99988866.xyz/https://github.com',
// desc: 'release文件加速下载跳转地址'
// },
// '/.*/.*/archive/': {
// redirect: 'gh.api.99988866.xyz/https://github.com'
// },
// 以下代理地址不支持该类资源的代理,暂时注释掉
// '/.*/.*/blame/': {
// redirect: 'gh.api.99988866.xyz/https://github.com'
Expand All @@ -69,10 +72,6 @@ module.exports = {
],
desc: '油猴脚本:高速下载 Git Clone/SSH、Release、Raw、Code(ZIP) 等文件 (公益加速)、项目列表单文件快捷下载、添加 git clone 命令'
},
'.*': {
desc: '目前禁掉sni就可以直接访问,如果后续github.com的ip被封锁,只能再走proxy模式',
sni: 'baidu.com'
},
'/fluidicon.png': {
cacheDays: 365,
desc: 'Github那只猫的图片,缓存1年'
Expand Down

0 comments on commit bba404a

Please sign in to comment.