perf: 配置描述
parent
31d0e14726
commit
98a2c845a3
|
@ -9,7 +9,8 @@ module.exports = {
|
||||||
intercepts: {
|
intercepts: {
|
||||||
'github.com': {
|
'github.com': {
|
||||||
'/.*/.*/releases/download/': {
|
'/.*/.*/releases/download/': {
|
||||||
redirect: 'download.fastgit.org'
|
redirect: 'download.fastgit.org',
|
||||||
|
desc: 'release文件加速下载跳转地址'
|
||||||
},
|
},
|
||||||
'/.*/.*/archive/': {
|
'/.*/.*/archive/': {
|
||||||
redirect: 'download.fastgit.org'
|
redirect: 'download.fastgit.org'
|
||||||
|
@ -25,13 +26,15 @@ module.exports = {
|
||||||
script: [
|
script: [
|
||||||
'jquery',
|
'jquery',
|
||||||
'github'
|
'github'
|
||||||
]
|
],
|
||||||
|
desc: 'clone加速复制链接脚本'
|
||||||
},
|
},
|
||||||
'/.*': {
|
'/.*': {
|
||||||
proxy: 'github.com',
|
proxy: 'github.com',
|
||||||
backup: [
|
backup: [
|
||||||
'gh.docmirror.top/_proxy'
|
'gh.docmirror.top/_proxy'
|
||||||
]
|
],
|
||||||
|
desc: '备用主站加速地址'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'api.github.com': {
|
'api.github.com': {
|
||||||
|
@ -44,7 +47,8 @@ module.exports = {
|
||||||
'.*': { proxy: 'raw.fastgit.org' }
|
'.*': { proxy: 'raw.fastgit.org' }
|
||||||
},
|
},
|
||||||
'github.githubassets.com': {
|
'github.githubassets.com': {
|
||||||
'.*': { proxy: 'assets.fastgit.org', test: 'https://github.githubassets.com/favicons/favicon.svg' }
|
'.*': { proxy: 'assets.fastgit.org', test: 'https://github.githubassets.com/favicons/favicon.svg', desc: '静态资源加速' }
|
||||||
|
|
||||||
},
|
},
|
||||||
'customer-stories-feed.github.com': {
|
'customer-stories-feed.github.com': {
|
||||||
'.*': { proxy: 'customer-stories-feed.fastgit.org' }
|
'.*': { proxy: 'customer-stories-feed.fastgit.org' }
|
||||||
|
|
Loading…
Reference in New Issue