Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/padeoe/hf-mirror-site
a huggingface mirror site.
https://github.com/padeoe/hf-mirror-site
Last synced: 3 months ago
JSON representation
a huggingface mirror site.
- Host: GitHub
- URL: https://github.com/padeoe/hf-mirror-site
- Owner: padeoe
- Created: 2023-10-27T02:09:15.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-18T02:41:11.000Z (8 months ago)
- Last Synced: 2024-05-13T22:57:13.805Z (6 months ago)
- Homepage: https://hf-mirror.com
- Size: 157 KB
- Stars: 162
- Watchers: 3
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mirror site of huggingface
Public version: [https://hf-mirror.com/](https://hf-mirror.com/)
## Deploy your own mirror
### Step 1: Install caddy
Install Caddy with the following plugins:- replace-response
- transform-encoder
- (Option) caddy-dns/cloudflareYou can download the executable caddy file containing the above plugins from [the official website here](https://caddyserver.com/download?package=github.com%2Fcaddyserver%2Freplace-response&package=github.com%2Fcaddy-dns%2Fcloudflare&package=github.com%2Fcaddyserver%2Ftransform-encoder) or build with [xcaddy](https://github.com/caddyserver/xcaddy).
### Step 2: prepare .env file
.env
```
MIRROR_HOST=hf-mirror.com
CF_TOKEN=your_cf_api_token_if_you_use_cloudflare_dns
API_KEY="" # ignore it
```### Step 3: run caddy
```bash
caddy run --envfile ./scripts/caddy/.env.template --config ./scripts/caddy/Caddyfile
```