Cnily03 / cf-worker-mirrors

Proxy to another HTTP connection via cloudflare workers, including Docker Hub, Github.
MIT License
8 stars 8 forks source link

how use it this proxy in GitHub Desktop. #1

Closed neozhu closed 1 day ago

neozhu commented 5 days ago

I have deployed to CF workers and it's working. image then how to use this proxy?

[https]
    proxy = https://mirrors.xxx.workers.dev:443
Cnily03 commented 3 days ago

https://mirrors.xxx.com/<url> proxies <url>

The proxy also fits UserAgent automatically. You can just set docker mirrors to https://mirrors.xxx.com (only in docker UserAgent) or https://mirrors.xxx.com/docker (in any case). If the UserAgent is git, the protocol like https:// can be ignored in <url> area.

Examples:

git clone https://mirrors.xxx.com/example.com/some.git
curl https://mirrors.xxx.com/https://example.com/some.pdf
docker pull mirrors.xxx.com/oven/bun:latest