From ea55c46fb403f18f832e0bfbbadfdf3dec85b416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Mon, 30 Sep 2024 23:37:11 +0800 Subject: [PATCH] =?UTF-8?q?config:=20=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E6=8B=A6=E6=88=AA=E9=85=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20`api.github.com`=20=E7=9A=84=20`sni:=20bai?= =?UTF-8?q?du.com`=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/core/src/config/index.js b/packages/core/src/config/index.js index 062a661..e81978a 100644 --- a/packages/core/src/config/index.js +++ b/packages/core/src/config/index.js @@ -129,12 +129,12 @@ module.exports = { } }, 'camo.githubusercontent.com': { - '.*': { - sni: 'baidu.com' - }, '^[a-zA-Z0-9/]+(\\?.*)?$': { cacheDays: 365, desc: '图片,缓存1年' + }, + '.*': { + sni: 'baidu.com' } }, 'collector.github.com': { @@ -181,6 +181,9 @@ module.exports = { '^/_private/browser/stats$': { success: true, desc: 'github的访问速度分析上传,没有必要,直接返回成功' + }, + '.*': { + sni: 'baidu.com' } }, 'hub.docker.com': {