Add domain management, reports, settings, and upload templates

- Implemented domain management page with a list of monitored domains and their DMARC, SPF, and DKIM statuses.
- Created reports page with filtering options for domain, report type, and date range, displaying DMARC reports.
- Developed settings page for IMAP configuration and DMARC policy management, including form validation and feedback.
- Added upload page for DMARC report files with drag-and-drop functionality and file type validation.
- Integrated Alpine.js for interactivity and dynamic data handling across all templates.
This commit is contained in:
Christian Krakau-Louis
2025-04-20 18:38:29 +02:00
parent f910cb0ba4
commit 69f8438a36
48 changed files with 3449 additions and 1029 deletions
+28
View File
@@ -0,0 +1,28 @@
# DMARQ Environment Variables
#
# Copy this file to .env and fill in the values for your environment
# Example: cp .env.example .env
# Application Settings
PROJECT_NAME="DMARQ"
SECRET_KEY="CHANGE_THIS_TO_A_RANDOM_SECRET_IN_PRODUCTION"
# Database
DATABASE_URL="sqlite:///./dmarq.db"
# IMAP Settings for DMARC Report Retrieval
IMAP_SERVER="mail.example.com" # Required for IMAP polling
IMAP_PORT=993 # Default for SSL
IMAP_USERNAME="dmarc@example.com"
IMAP_PASSWORD="your_imap_password"
# CORS Origins (comma separated)
BACKEND_CORS_ORIGINS="http://localhost:3000,http://localhost:5173"
# Admin User (first-time setup)
FIRST_SUPERUSER="admin@example.com"
FIRST_SUPERUSER_PASSWORD="adminpassword"
# Optional Cloudflare API Integration (for Milestone 8)
# CLOUDFLARE_API_TOKEN="your_cloudflare_api_token"
# CLOUDFLARE_ZONE_ID="your_cloudflare_zone_id"