24 lines
797 B
Python
24 lines
797 B
Python
from pydantic_settings import BaseSettings
|
|
|
|
class Settings(BaseSettings):
|
|
database_url: str = "mysql+aiomysql://sywmtnsg_admin:EEy_>2JJS0@localhost:6033/sywmtnsg_dm_management"
|
|
secret_key: str = "LAGs7G8Sis9aQHcipROxpjYRxFZKjr4wNm-_O0pBTkjNYv1rgPUR87VcNswH_VYGpIrsyGdqnNa3vcVSH0f5Tg"
|
|
algorithm: str = "HS256"
|
|
access_token_expire_minutes: int = 30
|
|
aws_access_key_id: str = ""
|
|
aws_secret_access_key: str = ""
|
|
aws_bucket_name: str = ""
|
|
celery_broker_url: str = ""
|
|
log_level: str = "INFO"
|
|
email_host: str = ""
|
|
email_port: int = 587
|
|
email_username: str = ""
|
|
email_password: str = ""
|
|
gdpr_deletion_delay_days: int = 7
|
|
testing: bool = False
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
env_file_encoding = "utf-8"
|
|
|
|
settings = Settings() |