Files
pickling-mes/backend/app/config.py

30 lines
774 B
Python
Raw Normal View History

from pydantic_settings import BaseSettings
from typing import List
import json
class Settings(BaseSettings):
DATABASE_URL: str = "postgresql+asyncpg://postgres:password@localhost:5432/pickling_mes"
DATABASE_SYNC_URL: str = "postgresql://postgres:password@localhost:5432/pickling_mes"
REDIS_URL: str = "redis://localhost:6379/0"
SECRET_KEY: str = "dev-secret-key"
ALGORITHM: str = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES: int = 480
APP_HOST: str = "0.0.0.0"
APP_PORT: int = 8000
DEBUG: bool = True
L1_HOST: str = "0.0.0.0"
L1_PORT: int = 9000
CORS_ORIGINS: List[str] = ["http://localhost:8080", "http://127.0.0.1:8080"]
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
settings = Settings()