from pydantic_settings import BaseSettings | |
class Settings(BaseSettings): | |
"""Loads the dotenv file. Including this is necessary to get | |
pydantic to load a .env file.""" | |
LOG_LEVEL: str = "ERROR" | |
AUTH0_DOMAIN: str | |
AUTH0_API_AUDIENCE: str | |
AUTH0_ISSUER: str | |
AUTH0_ALGORITHMS: str | |
DB_URI: str | |
SUPPORT_EMAIL_ADDRESS: str = "" | |
APPLICATIONINSIGHTS_CONNECTION_STRING: str | |
PASSWORD_SETUP_PAGE_URL: str | |
PASSWORD_LINK_EXPIRED: str | |
AUTH0_JWT_SECRET_KEY: str | |
CLIENT_ID: str | |
CLIENT_SECRET: str | |
ACS_CONNECTION_STRING: str = '' | |
SENDER_DISPLAY_NAME: str | |
class Config: | |
env_file = ".env" | |
env_file_encoding = "utf-8" | |
env = Settings() | |