Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sjtug/mirror-intel

Intelligent mirror redirector middleware for SJTUG
https://github.com/sjtug/mirror-intel

s3-backend sjtug

Last synced: about 1 month ago
JSON representation

Intelligent mirror redirector middleware for SJTUG

Awesome Lists containing this project

README

        

# 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