Skip to content

padeoe/hf-mirror-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mirror site of huggingface

Public version: 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/cloudflare

You can download the executable caddy file containing the above plugins from the official website here or build with 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

caddy run --envfile ./scripts/caddy/.env.template --config ./scripts/caddy/Caddyfile

About

a huggingface mirror site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published