Added cleanup logic.

This commit is contained in:
2025-08-07 22:25:02 +02:00
parent afccf236fc
commit 716c6730b5
9 changed files with 115 additions and 16 deletions

12
.env
View File

@@ -1,3 +1,13 @@
# FITRA environment variables
# Port to run the server on
PORT=8080
# Directory for uploaded files
UPLOAD_DIR=./uploads
BASE_URL=http://localhost:8080
# Base URL for file downloads
BASE_URL=http://localhost:8080
# How long to keep uploaded files before deletion (examples: 1d, 12h, 30m)
DELETE_FILES_AFTER=1d