init
This commit is contained in:
21
backend/app/config.py
Normal file
21
backend/app/config.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
DATABASE_URL: str = "postgresql+asyncpg://print3d:P3D_PASSWORD@31.59.58.220:5432/print3d"
|
||||
GOOGLE_API_KEY: str = ""
|
||||
TELEGRAM_BOT_TOKEN: str = ""
|
||||
TELEGRAM_CHAT_ID: str = ""
|
||||
UPLOAD_DIR: str = "/app/uploads"
|
||||
MAX_FILE_SIZE_MB: int = 50
|
||||
|
||||
MINIO_ENDPOINT: str = "localhost:9000"
|
||||
MINIO_ACCESS_KEY: str = "minioadmin"
|
||||
MINIO_SECRET_KEY: str = "minioadmin"
|
||||
MINIO_BUCKET: str = "filam3d"
|
||||
MINIO_SECURE: bool = False
|
||||
|
||||
model_config = {"env_file": ["../.env", ".env"]}
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user