cdn-rs

A simple CDN server written in Rust, using axum and redb. Supports user authentication, file/image upload, and automatic cleanup of inactive users.

Getting Started

  1. Build and run:

    cargo run --release
    

    The server will listen on 0.0.0.0:3000 (or your configured port).

  2. Authentication:

Routes

1. Register

2. Login

3. Get Current User

4. Upload File/Image

5. Download File

6. Download Image (Full)

7. Download Image Variant

8. List Files/Images

9. List Sessions/Tokens

10. Invalidate Session/Token

Error Responses

Notes