5d60d33db1
Volledige Foodlinkk Command Center uitbreiding met social automatisering, reclamefolder filters, Proxmox monitoring en documentatie.
22 lines
696 B
Python
22 lines
696 B
Python
import os
|
|
|
|
|
|
class Settings:
|
|
DB_HOST: str = os.getenv("DB_HOST", "foodlinkk_db")
|
|
DB_PORT: int = int(os.getenv("DB_PORT", "5432"))
|
|
DB_USER: str = os.getenv("DB_USER", "aissa")
|
|
DB_PASSWORD: str = os.getenv("DB_PASSWORD", "Foodlinkk#2026")
|
|
DB_NAME: str = os.getenv("DB_NAME", "foodlinkk")
|
|
TOOLS_API_URL: str = os.getenv("TOOLS_API_URL", "http://tools-api:8700")
|
|
SYNC_INTERVAL_SEC: int = int(os.getenv("SYNC_INTERVAL_SEC", "300"))
|
|
|
|
@property
|
|
def database_dsn(self) -> str:
|
|
return (
|
|
f"host={self.DB_HOST} port={self.DB_PORT} dbname={self.DB_NAME} "
|
|
f"user={self.DB_USER} password={self.DB_PASSWORD}"
|
|
)
|
|
|
|
|
|
settings = Settings()
|