19 lines
610 B
Python
19 lines
610 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|||
|
|
|
||
|
|
|
||
|
|
class Settings(BaseSettings):
|
||
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
||
|
|
|
||
|
|
database_url: str = "postgresql+psycopg://aurora:aurora@localhost:5432/aurora"
|
||
|
|
redis_url: str = "redis://localhost:6379/0"
|
||
|
|
jwt_secret: str = "dev-secret-change-me"
|
||
|
|
jwt_algorithm: str = "HS256"
|
||
|
|
jwt_expire_minutes: int = 60 * 24 * 7
|
||
|
|
media_dir: str = "./media"
|
||
|
|
generation_backend: str = "mock"
|
||
|
|
default_song_duration_seconds: int = 20
|
||
|
|
cors_origins: list[str] = ["http://localhost:3000"]
|
||
|
|
|
||
|
|
|
||
|
|
settings = Settings()
|