36 lines
950 B
Python
36 lines
950 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
# NOTE: The values fall backs to your environment variables when not set here
|
|
class AppSettings(BaseSettings):
|
|
NAME: str = "devops"
|
|
APP_NAME: str = NAME
|
|
APP_ENV: str = "alpha"
|
|
|
|
JWT_SECRET_KEY: str = ""
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 3600
|
|
REFRESH_TOKEN_EXPIRE_DAYS: int = 1
|
|
|
|
METRICS_ENABLED: bool = False
|
|
PROBES_ENABLED: bool = True
|
|
|
|
APP_MONGODB_URI: str = "mongodb://localhost:27017"
|
|
APP_MONGODB_NAME: str = "testdb"
|
|
|
|
LOG_BASE_PATH: str = "./log"
|
|
BACKEND_LOG_FILE_NAME: str = "devops"
|
|
APPLICATION_ACTIVITY_LOG: str = "devops-application-activity"\
|
|
|
|
RABBITMQ_HOST: str = "localhost"
|
|
RABBITMQ_PORT: int = 5672
|
|
RABBITMQ_USERNAME: str = "guest"
|
|
RABBITMQ_PASSWORD: str = "guest"
|
|
RABBITMQ_VIRTUAL_HOST: str = "/"
|
|
|
|
|
|
class Config:
|
|
env_file = ".myapp.env"
|
|
env_file_encoding = "utf-8"
|
|
|
|
|
|
app_settings = AppSettings()
|