Public version: https://hf-mirror.com/
Install Caddy with the following plugins:
- replace-response
- transform-encoder
- (Option) caddy-dns/cloudflare
You can download the executable caddy file containing the above plugins from the official website here or build with xcaddy.
.env
MIRROR_HOST=hf-mirror.com
CF_TOKEN=your_cf_api_token_if_you_use_cloudflare_dns
API_KEY="" # ignore it
caddy run --envfile ./scripts/caddy/.env.template --config ./scripts/caddy/Caddyfile