mirror of
https://github.com/M336G/geek_storage.git
synced 2026-11-02 08:45:22 +00:00
Superfast caching server for GEEK Music
- Rust 100%
|
|
||
|---|---|---|
| .github/workflows | ||
| migrations | ||
| src | ||
| .env.example | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
GEEK Storage
Superfast caching server for GEEK Music. Rust full-rewrite of my storage-server
Prerequisites
- Rust installed
- A device or server capable of running 24/7
Running
1. Download the repository manually or clone it:
git clone https://github.com/M336G/geek_storage.git
cd geek_storage
2. Create a .env file and fill it according to your needs using .env.example as a template
3. Start the instance with:
cargo run --releasefor productioncargo runfor development/testing
Once you've done all of this, you should have a running instance!
You may also download a pre-built binary directly from the releases tab.
Usage
Once you've got your instance running, you may use these endpoints:
| Method | Endpoint | Description |
|---|---|---|
GET |
/ |
Check if the server's up or not |
POST |
/ |
Upload a file (or one from a link) |
DELETE |
/<id> |
Delete a file |
GET |
/<id> |
Download an existing file |
GET |
/info |
Get information about the server |
License
This project is licensed under the MIT License.