Skip to content

sjtug/mirror-intel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mirror-intel

The intelligent mirror redirector middleware for SJTUG.

For more information about our mirror service, refer to https://github.com/sjtug/mirror-docker-unified/wiki

Usage

First of all, put Rocket.toml in the same folder as mirror-intel. Then,

RUST_LOG=info ./mirror-intel

For more advanced usage, you may refer to mirror-intel service defined in [mirror-docker-siyuan(https://github.com/sjtug/mirror-docker-siyuan).

After starting mirror-intel, it will serve on HTTP port 8000. You may set package manager with localhost:8000 endpoint, and start testing.

Supported Repos

See Rocket.toml.

Configuration

Please refer to Rocket.toml for more information.

Detail

  • mirror-intel will first query if object exists in s3 backend
  • if yes, it will redirect user to s3 object storage
  • if not, it will redirect user to original site, and submit task for download
  • the task will download file from original site and upload it to s3 backend

About

Intelligent mirror redirector middleware for SJTUG

Topics

Resources

License

Stars

Watchers

Forks

Languages