moving repository to gitea

This commit is contained in:
2026-07-26 10:07:10 +02:00
parent 94687f5fc1
commit aaca513e23
59 changed files with 29784 additions and 0 deletions

16
webapp/config.py Normal file
View File

@@ -0,0 +1,16 @@
import os
SECRET_KEY = "fdsafasd"
UPLOAD_FOLDER = "image_pool"
MAX_CONTENT_LENGTH = 16 * 1024 * 1024
# Simple environment switch used by database.py
# Set ENVIRONMENT to 'production' or 'staging' to use Postgres.
ENVIRONMENT = os.environ.get("ENVIRONMENT", os.environ.get("APP_ENV", "development")).lower()
USE_POSTGRES = ENVIRONMENT in {"production", "staging"}
# Optional: provide a full connection string like:
# postgresql://postgres:postgres@db:5432/postgres
DATABASE_URL = os.environ.get("DATABASE_URL", "")