feat: Add webserver routes and account logic
All checks were successful
Build Docker / BuildImage (push) Successful in 2m7s

This commit is contained in:
2025-07-25 11:45:19 +10:00
parent 1ac41d5582
commit c53a42b5c9
6 changed files with 367 additions and 2 deletions

View File

@@ -15,6 +15,33 @@ SMTP_PORT = int(os.getenv('SMTP_PORT', 465))
SMTP_USERNAME = os.getenv('SMTP_USERNAME', None)
SMTP_PASSWORD = os.getenv('SMTP_PASSWORD', None)
NOTIFICATION_TYPES = [
{
"type": "discord_webhook",
"fields": [
{
"name": "url",
"label": "Discord Webhook URL",
"type": "text",
"required": True
}
],
"description": "Send a notification to a Discord channel via webhook."
},
{
"type": "email",
"fields": [
{
"name": "email",
"label": "Email Address",
"type": "email",
"required": True
}
],
"description": "Send an email notification."
}
]
def handle_alert(domain: str, notification: dict, alert_data: dict):
"""