› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
BestChen
V2EX  ›  NGINX

笨比求教如何反代 github

  •  
  •   BestChen · May 28, 2021 · 6159 views
    This topic created in 1993 days ago, the information mentioned may be changed or developed.

    jsdelivr.net 加速实在不稳定,有时候直接加载不上.

    有没有什么笨比式的反代加速方法,笨比一个实在不会折腾。。

    6 replies  •  2021-05-29 11:37:29 +08:00
    stille
    stille
    May 28, 2021 via iPhone
    1
    Jays
    Jays
    May 28, 2021
    2
    hosts 目前还可以
    XIU2
    XIU2
    May 28, 2021
    3
    反代加速 Github 文件的项目已经有个 gh-proxy 了,可以尝试自己搭建,也可以用别人公益搭建的~

    github.com/XIU2/UserScript
    greasyfork.org/zh-CN/scripts/412245
    高速下载 Git Clone/SSH 、Release 、Raw 、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
    ByteCat
    ByteCat
    May 28, 2021
    4
    ik
    ik
    May 29, 2021 via iPhone
    5
    刚刚试了下我自己用的,支持 git clone

    例如: git clone https://servername/https/github.com/nginx/nginx


    location ~ ( http|https)/([\w\-\.\:]+)/(.*) {
    proxy_pass $1://$2/$3$is_args$args;

    proxy_ssl_server_name on;
    proxy_ssl_name "$2";
    proxy_redirect off;
    proxy_http_version 1.1;
    proxy_set_header Host "$2";
    proxy_set_header Upgrade "$http_upgrade";
    proxy_set_header Connection "upgrade";
    proxy_set_header X-Real-IP "$remote_addr";
    proxy_set_header X-Forwarded-For "$proxy_ad d_x_forwarded_for";
    }
    ik
    ik
    May 29, 2021 via iPhone
    6
    @ik 配合 cf,拉这个 nginx 仓库,能在半分钟内搞定
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   904 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 20:40 · PVG 04:40 · LAX 12:40 · JFK 15:40
    ♥ Do have faith in what you're doing.