25 lines
705 B
Python
25 lines
705 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
DATABASE_URL: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/kmountain"
|
|
CORS_ORIGINS: list[str] = ["http://localhost:4200", "http://localhost:3000"]
|
|
ENV: str = "development"
|
|
|
|
# Auth
|
|
ADMIN_USERNAME: str = ""
|
|
ADMIN_PASSWORD: str = ""
|
|
GOOGLE_CLIENT_ID: str = ""
|
|
GOOGLE_REDIRECT_URI: str = "http://localhost:4200"
|
|
JWT_SECRET_KEY: str = "change-me-in-production"
|
|
JWT_EXPIRE_MINUTES: int = 1440 # 24 hours
|
|
|
|
# Visitor stats
|
|
LOGS_DIR: str = "/logs"
|
|
GEOLITE2_DB_PATH: str = "/app/geo/GeoLite2-City.mmdb"
|
|
|
|
model_config = {"env_prefix": "KMTN_"}
|
|
|
|
|
|
settings = Settings()
|