25 lines
524 B
Python
25 lines
524 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URL: str
|
|
SECRET_KEY: str
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 10080 # 7 dage
|
|
|
|
# Mail
|
|
MAIL_HOST: str = "mailhog"
|
|
MAIL_PORT: int = 1025
|
|
MAIL_FROM: str = "noreply@linedance.local"
|
|
MAIL_USERNAME: str = ""
|
|
MAIL_PASSWORD: str = ""
|
|
MAIL_TLS: bool = False
|
|
|
|
# Base URL til verificerings-links
|
|
BASE_URL: str = "http://localhost:8000"
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|