From 524b82a42d5780b21b9602eb491ecc7936b35dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=89=AF?= <841369634@qq.com> Date: Thu, 26 Sep 2024 15:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B1=E4=BA=AB=E8=BF=9C=E7=A8=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6=E5=86=85=E5=AE=B9=E5=A4=8D=E5=88=B6?= =?UTF-8?q?gitee=E4=BB=93=E5=BA=93=E4=B8=AD=E7=9A=84=E5=85=B1=E4=BA=AB?= =?UTF-8?q?=E8=BF=9C=E7=A8=8B=E9=85=8D=E7=BD=AE=E5=86=85=E5=AE=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/config/remote_config.json5 | 196 +++++++++++-------- 1 file changed, 110 insertions(+), 86 deletions(-) diff --git a/packages/core/src/config/remote_config.json5 b/packages/core/src/config/remote_config.json5 index bbb94ef..7eaa169 100644 --- a/packages/core/src/config/remote_config.json5 +++ b/packages/core/src/config/remote_config.json5 @@ -1,89 +1,113 @@ { - "server": { - "intercepts": { - "github.com": { - "^((/[^/]+){2,})/raw((/[^/]+)+\\.(jpg|jpeg|png|gif))(\\?.*)?$": { - "sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置 - }, - "^((/[^/]+){2,})/raw((/[^/]+)+\\.js)(\\?.*)?$": { - "sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置 - } - }, - "github.githubassets.com": { - ".*": { - "sni": "baidu.com" - } - }, - "camo.githubusercontent.com": { - ".*": { - "sni": "baidu.com" - } - }, - "collector.github.com": { - ".*": { - "sni": "baidu.com" - } - }, - "www.gstatic.com": { - "/recaptcha/.*": { - "proxy": "www.recaptcha.net" - } - } - }, - "preSetIpList": { - "hub.docker.com": null // 1.8.2版本中,该域名的预设IP有问题,现在远程配置中删除 - }, - "dns": { - "mapping": { - "*.jetbrains.com": "quad9", - "*.azureedge.net": "quad9", - "*.stackoverflow.com": "quad9" - }, - "speedTest": { - "interval": 300000 - } - } - }, - "proxy": { - "excludeIpList": { - // Github文件上传所使用的域名,被DS代理会导致文件上传经常失败,从系统代理中排除掉 - "objects-origin.githubusercontent.com": true, + "server": { + "intercepts": { + "github.com": { + "^(/[\\w-.]+){2,}/?(\\?.*)?$": { + "tampermonkeyScript": "https://gitee.com/wangliang181230/dev-sidecar/raw/scripts/tampermonkey.js", + "script": "https://gitee.com/wangliang181230/dev-sidecar/raw/scripts/GithubEnhanced-High-Speed-Download.user.js" + }, + "^((/[^/]+){2,})/raw((/[^/]+)+\\.(jpg|jpeg|png|gif))(\\?.*)?$": { + "sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置 + }, + "^((/[^/]+){2,})/raw((/[^/]+)+\\.js)(\\?.*)?$": { + "sni": "baidu.com" // proxy拦截器不会使用 .* 中的sni配置,故补充此配置 + } + }, + "github.githubassets.com": { + ".*": { + "sni": "baidu.com" + } + }, + "camo.githubusercontent.com": { + ".*": { + "sni": "baidu.com" + } + }, + "collector.github.com": { + ".*": { + "sni": "baidu.com" + } + }, + "www.gstatic.com": { + "/recaptcha/.*": { + "proxy": "www.recaptcha.net" + } + } + }, + "preSetIpList": { + "hub.docker.com": null // 1.8.2版本中,该域名的预设IP有问题,现在远程配置中删除 + }, + "dns": { + "mapping": { + "*.jetbrains.com": "quad9", + "*.azureedge.net": "quad9", + "*.stackoverflow.com": "quad9" + }, + "speedTest": { + "interval": 300000 + } + } + }, + "proxy": { + "excludeIpList": { + // Github文件上传所使用的域名,被DS代理会导致文件上传经常失败,从系统代理中排除掉 + "objects-origin.githubusercontent.com": true, + // Github通过Actions上传的文件,下载时所需的域名,从系统代理中排除掉,否则下载会失败 + "*.windows.net": true, - // cloudflare:排除以下域名,cloudflare的人机校验会更快,成功率更高。 - "challenges.cloudflare.com": true - } - }, - "plugin": { - "overwall": { - "targets": { - "*.github.com": true, - "*github*.com": true, - "*.wikimedia.org": true, - "*.v2ex.com": true, - "*.azureedge.net": true, - "*.cloudfront.net": true, - "*.bing.com": true, - "*.discourse-cdn.com": true, - "*.gravatar.com": true, - "*.docker.com": true, - "*.vueuse.org": true, - "*.elastic.co": true, - "*.optimizely.com": true, - "*.stackpathcdn.com": true, - "*.fastly.net": true, - "*.cloudflare.com": true, - "*.233v2.com": true, - "*.v2fly.org": true, - "*.telegram.org": true, - "*.amazon.com": true, - "*.googleapis.com": true, - "*.google-analytics.com": true, - "*.cloudflareinsights.com": true, - "*.intlify.dev": true, - "*.segment.io": true, - "*.shields.io": true, - "*.jsdelivr.net": true - } - } - } + // cloudflare:排除以下域名,cloudflare的人机校验会更快,成功率更高。 + "*.cloudflare.com": true, + "*.cloudflare-cn.com": true, + + "*kaspersky*.com": true, + "*.upd.kaspersky.com": true, + + "*.github.io": true, + + "*.sandboxie-plus.com": true + } + }, + "plugin": { + "overwall": { + "targets": { + "*.github.com": true, + "*github*.com": true, + "*.nodejs.org": true, + "*.npmjs.com": true, + "*.wikimedia.org": true, + "*.v2ex.com": true, + "*.azureedge.net": true, + "*.cloudfront.net": true, + "*.bing.com": true, + "*.discourse-cdn.com": true, + "*.gravatar.com": true, + "*.docker.com": true, + "*.vueuse.org": true, + "*.elastic.co": true, + "*.optimizely.com": true, + "*.stackpathcdn.com": true, + "*.fastly.net": true, + "*.cloudflare.com": true, + "*.233v2.com": true, + "*.v2fly.org": true, + "*.telegram.org": true, + "*.amazon.com": true, + "*.googleapis.com": true, + "*.google-analytics.com": true, + "*.cloudflareinsights.com": true, + "*.intlify.dev": true, + "*.segment.io": true, + "*.shields.io": true, + "*.jsdelivr.net": true, + + // ChatGPT + "*.oaiusercontent.com": true, // 在ChatGPT中生成文件并下载所需的域名 + + // Pixiv相关 + "*.pixiv.org": true, + "*.fanbox.cc": true, + "*.onesignal.com": true // pixiv站点,会加载该域名下的js脚本 + } + } + } }