Personal file server, powered by Actix Web
Bug Report
|
Request
A backend server for handling file uploads and downloads, powered by Actix Web, Rust.
It uses the PostgreSQL database for managing file metadata.
The file will be stored in Oracle Object Storage.
-
Rust must be installed.
-
PostgreSQL database is required, you can use Supabase or other services.
-
You need to set environment variables to run the application.
PG__URL= ORACLE_FAMILY_RW_ENDPOINT=<presigned-url-of-oracle-object-storage> ORACLE_AECHECK_W_ENDPOINT=<presigned-url-of-oracle-object-storage> ORACLE_AECHECK_R_ENDPOINT=<presigned-url-of-oracle-object-storage> API_KEY=
You can run the server with the following command:
cargo run
Otherwise, you can set up auto-reloading and run:
cargo watch -x run
The API documentation is powered by utoipa.
After running the server, Swagger UI is available at:
https://localhost:8080/file/docs/
See the CONTRIBUTING.md.