PIbd-42_SSPR/app/core/config.py
2024-10-21 23:12:37 +03:00

18 lines
381 B
Python

import os
from pydantic_settings import BaseSettings, SettingsConfigDict
class Settings(BaseSettings):
POSTGRES_USER: str
POSTGRES_PASSWORD: str
DATABASE_URL: str
MINIO_ROOT_USER: str
MINIO_ROOT_PASSWORD: str
current_directory: str = os.getcwd()
print(current_directory)
model_config = SettingsConfigDict(env_file=".env")
settings = Settings()