06/01 Optimize codes

This commit is contained in:
2026-06-01 17:07:00 -04:00
parent 25b15d8432
commit 4406d9734c
7 changed files with 231 additions and 10 deletions
+8
View File
@@ -30,6 +30,14 @@ class Config:
TELLER_KEY_PATH = os.environ.get('TELLER_KEY_PATH', '/home/pfm/teller/private_key.pem')
TELLER_WEBHOOK_SECRET = os.environ.get('TELLER_WEBHOOK_SECRET', '')
# Budget alert emails (optional — all four must be set to enable)
SMTP_HOST = os.environ.get('SMTP_HOST', '')
SMTP_PORT = int(os.environ.get('SMTP_PORT', 587))
SMTP_USER = os.environ.get('SMTP_USER', '')
SMTP_PASSWORD = os.environ.get('SMTP_PASSWORD', '')
ALERT_EMAIL = os.environ.get('ALERT_EMAIL', '') # recipient address
APP_URL = os.environ.get('APP_URL', 'https://pfm.ngodanguyen.tech')
# Application log file (rotating, shared by all app.* loggers)
LOG_FILE_PATH = os.environ.get(
'LOG_FILE_PATH',