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 · 5678 views
    This topic created in 1809 days ago, the information mentioned may be changed or developed.

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

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

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

    github.com/XIU2/UserScript
    greasyfork.org/zh-CN/scripts/412245
    高速下载 Git Clone/SSH 、Release 、Raw 、Code(ZIP) 等文件、项目列表单文件快捷下载 (☁)
    ByteCat
        4
    ByteCat  
       May 28, 2021
    ik
        5
    ik  
       May 29, 2021 via iPhone
    刚刚试了下我自己用的,支持 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
        6
    ik  
       May 29, 2021 via iPhone
    @ik 配合 cf,拉这个 nginx 仓库,能在半分钟内搞定
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1070 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 18:48 · PVG 02:48 · LAX 11:48 · JFK 14:48
    ♥ Do have faith in what you're doing.