Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sjtug/mirror-intel

Open more actions menu

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

Or set environment variable ROCKET_TOML_PATH to the path of Rocket.toml.

RUST_LOG=info ROCKET_TOML_PATH=Rocket.toml ./mirror-intel

For more advanced usage, you may refer to mirror-intel service defined in 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
  • otherwise, 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

Stars

Watchers

Forks

Releases

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.