A high-performance, self-hosted cloud storage solution powered by Swift and Vapor.
This project is in an early development stage.
- Database Schema: Subject to change without migrations.
- API: Breaking changes may occur on any commit.
- Stability: Not recommended for production data yet.
- Language: Swift 6.0+
- Framework: Vapor 4
- Target: Linux (Ubuntu), macOS
The application can be configured using the following environment variables. You can set these in your shell or via a .env file.
| Variable | Description | Default / Fallback |
|---|---|---|
DATABASE_URL |
Postgres connection string (e.g., postgres://user:pass@localhost:5432/db) |
sqlite (db.sqlite) |
JWT_SECRET |
Secret key for signing JWT tokens | Random 32-byte string |
CORS_ALLOWED_ORIGINS |
Allowed origin for CORS headers (Release mode only) | http://localhost:3000 |
STORAGE_PATH |
Local directory for file storage (if S3 is not used) | WorkingDir/Storage/ |
S3_BUCKET |
AWS S3 Bucket name (Enables S3 storage driver) | Local Storage |
AWS_ACCESS_KEY_ID |
AWS Access Key for S3 storage | None |
AWS_SECRET_ACCESS_KEY |
AWS Secret Key for S3 storage | None |
Run with full optimizations and production-level logging:
swift run FynnCloudBackend serve --env productionRun with verbose logging and debug symbols:
swift run FynnCloudBackend- Ensure you have Swift 6.0+ installed.
- Clone the repository:
git clone https://github.com/thilojaeggi/FynnCloudBackend.git
cd FynnCloudBackend- Build the project:
swift build- Run the binary:
./build/debug/FynnCloudBackend