first
This commit is contained in:
24
sop-back/app/core/config.py
Normal file
24
sop-back/app/core/config.py
Normal file
@@ -0,0 +1,24 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user