Add basic backend infrastructure
Signed-off-by: Felipe Cardoso <felipe.cardoso@hotmail.it>
This commit is contained in:
0
backend/app/core/__init__.py
Normal file
0
backend/app/core/__init__.py
Normal file
21
backend/app/core/config.py
Normal file
21
backend/app/core/config.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# SFTP Settings
|
||||
SFTP_HOST: str
|
||||
SFTP_USER: str
|
||||
SFTP_PASSWORD: str
|
||||
SFTP_PATH: str
|
||||
SFTP_PORT: int = 22
|
||||
|
||||
# API Settings
|
||||
API_VER_STR: str = "/api/v1"
|
||||
PROJECT_NAME: str = "Training Monitor"
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
case_sensitive = True
|
||||
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user