Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Github Proxy

Github 加速代理

使用方法

# 例如第一个域名 1.github.010716.xyz

https://1.github.010716.xyz/https://raw.githubusercontent.com/qigj/github_proxy/refs/heads/main/Textfile

自动检测脚本

wget

wget --timeout=5 --tries=1 -qO- https://gitee.com/qigj/github_proxy/raw/master/github_proxy_list.txt|while read GITHUB_PROXY;do wget --timeout=5 --tries=1 -qO- "https://${GITHUB_PROXY}/https://raw.githubusercontent.com/qigj/github_proxy/refs/heads/main/Textfile" 2>/dev/null|grep -q 917faa3e-3faf-4f4e-8f45-ac3d1eb43856 && echo "Github代理地址: https://$GITHUB_PROXY/" && break;done

curl

curl -s --max-time 5 https://gitee.com/qigj/github_proxy/raw/master/github_proxy_list.txt|while read GITHUB_PROXY;do curl -s --max-time 5 "https://${GITHUB_PROXY}/https://raw.githubusercontent.com/qigj/github_proxy/refs/heads/main/Textfile" 2>/dev/null|grep -q 917faa3e-3faf-4f4e-8f45-ac3d1eb43856 && echo "Github代理地址: https://$GITHUB_PROXY/" && break;done

直接单独当作函数调用

curl_github_proxy() {
    log "🔍 检查 Github Proxy ..."
    curl -s --max-time 5 https://gitee.com/qigj/github_proxy/raw/master/github_proxy_list.txt | while read GITHUB_PROXY; do \
    curl -s --max-time 5 "https://${GITHUB_PROXY}/https://raw.githubusercontent.com/qigj/github_proxy/refs/heads/main/Textfile" 2>/dev/null|grep -q 917faa3e-3faf-4f4e-8f45-ac3d1eb43856 && log "✅ Github代理地址: https://$GITHUB_PROXY/" &&  \
    curl https://$GITHUB_PROXY/$@ && break; done
}
curl_github_proxy "$DOWNLOAD_URL" -sL --max-time 180 -o "$INSTALL_DIR/$TAR_NAME" || { log "❌ 下载失败"; return; }

直接使用

curl -s https://raw.giteeusercontent.com/qigj/github_proxy/raw/master/github_proxy.sh| bash -s https://github.com/docker/compose/releases/latest/download/docker-compose-linux-aarch64
bash <(curl -s https://raw.giteeusercontent.com/qigj/github_proxy/raw/master/github_proxy.sh) https://github.com/docker/compose/releases/latest/download/docker-compose-linux-aarch64

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors