From 1dac12e2e249ad2ef3afc0c9a65882e6915b216d Mon Sep 17 00:00:00 2001
From: xiaojunnuo <xiaojunnuo@qq.com>
Date: Mon, 16 Nov 2020 14:28:43 +0800
Subject: [PATCH] =?UTF-8?q?docs:=20github=E5=8A=A0=E9=80=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 packages/core/src/config/index.js | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/packages/core/src/config/index.js b/packages/core/src/config/index.js
index 3ddb6f9a..9ba724b9 100644
--- a/packages/core/src/config/index.js
+++ b/packages/core/src/config/index.js
@@ -18,12 +18,18 @@ module.exports = {
         },
         '/.*/.*/blame/': {
           redirect: 'hub.fastgit.org'
+        },
+        '/.*': {
+          proxy: 'github.com',
+          backup: [
+            'github.docmirror.cn'
+          ]
         }
       },
       'raw.githubusercontent.com': {
         '.*': { proxy: 'raw.fastgit.org' }
       },
-      'github11.githubassets.com': {
+      'github.githubassets.com': {
         '.*': { proxy: 'assets.fastgit.org', test: 'https://github.githubassets.com/favicons/favicon.svg' }
       },
       'customer-stories-feed.github.com': {
@@ -78,7 +84,13 @@ module.exports = {
       'archive.cloudera.com': { '.*': { regexp: '/cdh5/.*', proxy: 'cloudera.proxy.ustclug.org' } },
       'downloads.lede-project.org': { '.*': { proxy: 'lede.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: {
       'alipay.com': true,
@@ -100,12 +112,13 @@ module.exports = {
         }
       },
       mapping: {
-        'img.shields.io': 'aliyun',
-        '*.github.com': 'aliyun',
-        '*.githubusercontent.com': 'aliyun',
-        '*.githubassets.com': 'aliyun',
+        'img.shields.io': 'usa',
+        '*.github.com': 'usa',
+        '*.githubusercontent.com': 'usa',
+        '*.githubassets.com': 'usa',
         // "解决push的时候需要输入密码的问题",
-        'github.com': 'aliyun'
+        'github.com': 'usa',
+        '*.vuepress.vuejs.org': 'usa'
       }
     }
   },