Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sjtug/mirror-intel
- Owner: sjtug
- License: apache-2.0
- Created: 2020-12-03T10:17:49.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-23T14:11:35.000Z (almost 1 year ago)
- Last Synced: 2024-04-09T15:18:06.504Z (9 months ago)
- Topics: s3-backend, sjtug
- Language: Rust
- Homepage:
- Size: 208 KB
- Stars: 16
- Watchers: 5
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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