A small, self-hosted image uploader and hoster built with Rust, rocket, ffmpeg, and image.
- Authenticated uploads
- File format conversion
- Clutter-free and fast viewing
- Configurable file size limitation
- Configurable request limitations
- Optional configurable periodic file deletion
Visit the project homepage for installation instructions.
Name | Type | Default | Description |
---|---|---|---|
ROCKET_SERVER_URL | String | http://localhost:1337 | The URL in the returned image link |
ROCKET_RATE_LIMIT | Integer | 2 | Number of allowed requests per second |
ROCKET_FILE_AGE_WEEKS | Integer | 2 | Number of weeks files are allowed to live for |
ROCKET_GARBAGE_COLLECTOR | Integer | 1 | Turn periodic file deletion ON (1) or OFF (0) |
ROCKET_UPLOAD_MAX_SIZE | Integer | 20 | Maximum allowed file size, in MiB, the server will allow |
GET www.<your_domain>.ltd/<file_name>
: view uploaded file
www.<your_domain>.ltd/upload
: upload formwww.<your_domain>.ltd/delete/<file_name>
: file deletion form
www.<your_domain>.ltd/upload
- method:
POST
- headers:
- authorization:
Bearer <your_token>
- authorization:
- body:
{data: <file>}
- method:
www.<your_domain>.ltd/delete/<file_name>
- method:
DELETE
- headers:
- authorization:
Bearer <your_token>
- authorization:
- method: