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