docmirror / dev-sidecar

开发者边车,github打不开,github加速,git clone加速,git release下载加速,stackoverflow加速
Mozilla Public License 2.0
14.92k stars 1.77k forks source link

由于 git.fastgit.org 无法使用, 建议修改 加速服务-拦截设置 #273

Closed LRoInT closed 5 months ago

LRoInT commented 7 months ago

建议将加速服务-拦截设置内的github项改为

"github.com": {
    "/.*/.*/releases/download/": {
      "redirect": "gh.api.99988866.xyz/https://github.com",
      "desc": "release文件加速下载跳转地址"
    },
    "/.*/.*/archive/": {
      "redirect": "gh.api.99988866.xyz/https://github.com"
    },
    "/.*/.*/blame/": {
      "redirect": "gh.api.99988866.xyz/https://github.com"
    },
    "^/[^/]+/[^/]+(/releases(/.*)?)?$": {
      "script": [
        "github"
      ],
      "desc": "clone加速复制链接脚本"
    },
    "/.*": {
      "proxy": "github.com",
      "desc": "目前禁掉sni就可以直接访问,如果后续github.com的ip被封锁,只能再走proxy模式",
      "sni": "baidu.com"
    }

    // ......

}
wangliang181230 commented 7 months ago

@LRoInT 问下,大佬,下面这还有个 fastgit.org 的配置,这么改可以吗? 图片

wangliang181230 commented 7 months ago

不过 customer-stories-feed.fastgit.org 域名貌似还能用。是不是暂时没关系,但以后还是会无法使用?

LRoInT commented 7 months ago

不清楚,但这个配置目前没问题, 不知道就别改

loveexword commented 6 months ago

建议将加速服务-拦截设置内的github项改为

"github.com": {
    "/.*/.*/releases/download/": {
      "redirect": "gh.api.99988866.xyz/https://github.com",
      "desc": "release文件加速下载跳转地址"
    },
    "/.*/.*/archive/": {
      "redirect": "gh.api.99988866.xyz/https://github.com"
    },
    "/.*/.*/blame/": {
      "redirect": "gh.api.99988866.xyz/https://github.com"
    },
    "^/[^/]+/[^/]+(/releases(/.*)?)?$": {
      "script": [
        "github"
      ],
      "desc": "clone加速复制链接脚本"
    },
    "/.*": {
      "proxy": "github.com",
      "desc": "目前禁掉sni就可以直接访问,如果后续github.com的ip被封锁,只能再走proxy模式",
      "sni": "baidu.com"
    }

我改成你这了

wangliang181230 commented 6 months ago

源码中已修改为你的配置,代码提交记录:https://github.com/docmirror/dev-sidecar/commit/5a9663584424a39ff65096b6a973884c1ef9ff74

wangliang181230 commented 5 months ago

1.8.0 版本,已经将github油猴脚本升级到最新,兼容了当前的github站点。 使用 1.8.0 版本时,下载链接后面会有很多备用链接供高速下载,如图:


图片