From d83636c55f17c5a9c07dcd56a67ac577a0ac0adf Mon Sep 17 00:00:00 2001 From: itskovacs Date: Wed, 15 Oct 2025 23:40:44 +0200 Subject: [PATCH] :sparkles: Attachments and Backups config --- backend/trip/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/trip/config.py b/backend/trip/config.py index e684b35..e70dfe0 100644 --- a/backend/trip/config.py +++ b/backend/trip/config.py @@ -6,11 +6,13 @@ from pydantic_settings import BaseSettings class Settings(BaseSettings): FRONTEND_FOLDER: str = "frontend" SQLITE_FILE: str = "storage/trip.sqlite" - ASSETS_FOLDER: str = "storage/assets" ASSETS_URL: str = "/api/assets" PLACE_IMAGE_SIZE: int = 500 TRIP_IMAGE_SIZE: int = 600 + ATTACHMENTS_FOLDER: str = "storage/attachments" + ATTACHMENT_MAX_SIZE: int = 10 * 1024 * 1024 # 10MB + BACKUPS_FOLDER: str = "storage/backups" SECRET_KEY: str = secrets.token_hex(32) ALGORITHM: str = "HS256"