11 lines
558 B
Python
11 lines
558 B
Python
import os
|
|
|
|
DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///./jardin.db")
|
|
UPLOAD_DIR = os.getenv("UPLOAD_DIR", "./data/uploads")
|
|
CORS_ORIGINS = os.getenv("CORS_ORIGINS", "http://localhost:5173").split(",")
|
|
STATION_URL = os.getenv("STATION_URL", "http://10.0.0.8:8081/")
|
|
METEO_LAT = float(os.getenv("METEO_LAT", "45.14"))
|
|
METEO_LON = float(os.getenv("METEO_LON", "4.12"))
|
|
ENABLE_SCHEDULER = os.getenv("ENABLE_SCHEDULER", "1").lower() in {"1", "true", "yes", "on"}
|
|
ENABLE_BOOTSTRAP = os.getenv("ENABLE_BOOTSTRAP", "1").lower() in {"1", "true", "yes", "on"}
|