import os from dotenv import load_dotenv load_dotenv() class Config: SECRET_KEY = os.environ.get('SECRET_KEY', 'dev-secret-key-change-in-production') SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL', 'postgresql://slotfinder:slotfinder@localhost/slotfinder') SQLALCHEMY_TRACK_MODIFICATIONS = False # Session security SESSION_COOKIE_SECURE = os.environ.get('SESSION_COOKIE_SECURE', 'false').lower() in ('true', '1', 'yes') # OIDC Configuration (Keycloak) OIDC_CLIENT_ID = os.environ.get('OIDC_CLIENT_ID', 'slotfinder') OIDC_CLIENT_SECRET = os.environ.get('OIDC_CLIENT_SECRET', 'slotfinder-dev-secret') OIDC_DISCOVERY_URL = os.environ.get('OIDC_DISCOVERY_URL', 'http://localhost:8080/realms/master/.well-known/openid-configuration') OIDC_USE_GIVEN_NAME = os.environ.get('OIDC_USE_GIVEN_NAME', 'false').lower() in ('true', '1', 'yes')