19 lines
456 B
Python
19 lines
456 B
Python
from functools import lru_cache
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
app_name: str = "report-notebooklm-api"
|
|
api_prefix: str = "/api/report-notebooklm/v1"
|
|
database_url: str
|
|
redis_url: str
|
|
redis_key_prefix: str = "rnb:"
|
|
|
|
model_config = SettingsConfigDict(env_prefix="RNB_", env_file=".env", extra="ignore")
|
|
|
|
|
|
@lru_cache
|
|
def get_settings() -> Settings:
|
|
return Settings()
|