docs: github加速

pull/180/head
xiaojunnuo 2020-11-16 14:28:43 +08:00
parent 172facec66
commit 1dac12e2e2
1 changed files with 20 additions and 7 deletions

View File

@ -18,12 +18,18 @@ module.exports = {
}, },
'/.*/.*/blame/': { '/.*/.*/blame/': {
redirect: 'hub.fastgit.org' redirect: 'hub.fastgit.org'
},
'/.*': {
proxy: 'github.com',
backup: [
'github.docmirror.cn'
]
} }
}, },
'raw.githubusercontent.com': { 'raw.githubusercontent.com': {
'.*': { proxy: 'raw.fastgit.org' } '.*': { proxy: 'raw.fastgit.org' }
}, },
'github11.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' }
}, },
'customer-stories-feed.github.com': { 'customer-stories-feed.github.com': {
@ -78,7 +84,13 @@ module.exports = {
'archive.cloudera.com': { '.*': { regexp: '/cdh5/.*', proxy: 'cloudera.proxy.ustclug.org' } }, 'archive.cloudera.com': { '.*': { regexp: '/cdh5/.*', proxy: 'cloudera.proxy.ustclug.org' } },
'downloads.lede-project.org': { '.*': { proxy: 'lede.proxy.ustclug.org' } }, 'downloads.lede-project.org': { '.*': { proxy: 'lede.proxy.ustclug.org' } },
'downloads.openwrt.org': { '.*': { proxy: 'openwrt.proxy.ustclug.org' } }, 'downloads.openwrt.org': { '.*': { proxy: 'openwrt.proxy.ustclug.org' } },
'secure.gravatar.com': { '.*': { proxy: 'gravatar.proxy.ustclug.org' } } 'secure.gravatar.com': { '.*': { proxy: 'gravatar.proxy.ustclug.org' } },
'*.carbonads.com': {
'/carbon.*': {
abort: true,
desc: '广告拦截'
}
}
}, },
whiteList: { whiteList: {
'alipay.com': true, 'alipay.com': true,
@ -100,12 +112,13 @@ module.exports = {
} }
}, },
mapping: { mapping: {
'img.shields.io': 'aliyun', 'img.shields.io': 'usa',
'*.github.com': 'aliyun', '*.github.com': 'usa',
'*.githubusercontent.com': 'aliyun', '*.githubusercontent.com': 'usa',
'*.githubassets.com': 'aliyun', '*.githubassets.com': 'usa',
// "解决push的时候需要输入密码的问题", // "解决push的时候需要输入密码的问题",
'github.com': 'aliyun' 'github.com': 'usa',
'*.vuepress.vuejs.org': 'usa'
} }
} }
}, },