25 lines
642 B
Python
25 lines
642 B
Python
from typing import List
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
PROJECT_NAME: str = "Smash or Pass"
|
|
VERSION: str = "0.1.0"
|
|
ALLOWED_ORIGINS: List[str] = ["*"]
|
|
|
|
ADMIN_ENABLED: bool = False
|
|
|
|
DATABASE_URL: str = "sqlite:///./data/sop.db"
|
|
|
|
S3_ENDPOINT_URL: str = "http://localhost:9000"
|
|
S3_PUBLIC_URL: str = "http://localhost:9000"
|
|
S3_ACCESS_KEY: str = "minioadmin"
|
|
S3_SECRET_KEY: str = "minioadmin"
|
|
S3_BUCKET: str = "sop"
|
|
S3_REGION: str = "us-east-1"
|
|
|
|
|
|
settings = Settings()
|