moving repository to gitea
This commit is contained in:
16
webapp/config.py
Normal file
16
webapp/config.py
Normal 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", "")
|
||||
Reference in New Issue
Block a user