refactor: 去掉raw

pull/67/head
xiaojunnuo 2021-03-28 23:51:11 +08:00
parent b07f96c736
commit 1976ef6991
1 changed files with 6 additions and 5 deletions

View File

@ -43,10 +43,7 @@ module.exports = {
'/.*/.*/archive/': {
redirect: 'download.fastgit.org'
},
'/.*/.*/raw/': {
replace: '(.+)\\/raw\\/(.+)',
proxy: 'raw.fastgit.org$1/$2'
},
'/.*/.*/blame/': {
redirect: 'hub.fastgit.org'
},
@ -70,6 +67,10 @@ module.exports = {
desc: 'github的访问速度分析上传没有必要直接返回成功'
}
},
'/.*/.*/raw11/': {
replace: '(.+)\\/raw\\/(.+)',
proxy: 'raw.fastgit.org$1/$2'
},
'raw.11githubusercontent.com': {
'.*': { proxy: 'raw.fastgit.org' }
},
@ -192,7 +193,7 @@ module.exports = {
// }
},
mapping: {
// 'assets.fastgit.org': 'usa',
'assets.fastgit.org': 'usa',
'*githubusercontent.com': 'quad9',
'*yarnpkg.com': 'usa',
'*cloudfront.net': 'usa',