Restructure into full project layout
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
SECRET_KEY: str
|
||||
ALGORITHM: str = "HS256"
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES: int = 60
|
||||
REFRESH_TOKEN_EXPIRE_DAYS: int = 30
|
||||
|
||||
ANTHROPIC_API_KEY: str
|
||||
ANTHROPIC_MODEL: str = "claude-sonnet-4-6"
|
||||
|
||||
ADMIN_EMAIL: str
|
||||
ADMIN_PASSWORD: str
|
||||
|
||||
DATABASE_URL: str
|
||||
REDIS_URL: str = "redis://cache:6379"
|
||||
|
||||
SCRYFALL_RATE_LIMIT_RPS: int = 8
|
||||
SCRYFALL_CACHE_TTL_SECONDS: int = 86400
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user