g_solution / app /core /config.py
minhvtt's picture
Upload 20 files
94b52f1 verified
Raw
History Blame Contribute Delete
567 Bytes
import os
from pydantic import BaseModel
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
app_name: str = "G-Solution Backend"
api_prefix: str = "/api/v1"
mongo_uri: str = "mongodb://localhost:27017"
mongo_db: str = "g_solution"
storage_dir: str = "storage/screenshots"
media_prefix: str = "/media"
hf_token: str = ""
warmup_game_models: bool = False
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
case_sensitive = False
settings = Settings()