modcomms/backend/.env.example
michael e2fd9549f7 Add support email functionality via Mailgun
Backend:
- Add email_service.py with Mailgun API integration
- Add SupportEmailRequest schema for email endpoint
- Add Mailgun config settings (API URL, key, from address, support email)
- Update .env.example with Mailgun configuration variables

Frontend:
- Update Login.tsx SupportModal to send emails via /api/support/email
- Update Profile.tsx question form to send emails via apiService
- Add loading states, success/error feedback, and auto-close on success

The support forms on both the login page and profile page now actually
send emails to the support team instead of just showing alerts.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 07:03:11 -06:00

37 lines
1.2 KiB
Text
Executable file

# Gemini API Configuration
# Get your API key from: https://aistudio.google.com/app/apikey
GEMINI_API_KEY=your_gemini_api_key_here
# Reference Documents Path (optional)
# Defaults to ../reference_docs relative to backend/
# REFERENCE_DOCS_PATH=/path/to/reference_docs
# CORS Configuration
# Comma-separated list of allowed origins
CORS_ORIGINS=http://localhost:3000
# Server Configuration
HOST=0.0.0.0
PORT=8000
# Azure AD Configuration (for Microsoft SSO token verification)
# Get these from your Azure AD app registration
AZURE_TENANT_ID=your_azure_tenant_id_here
AZURE_CLIENT_ID=your_azure_client_id_here
# Development only - set to "true" to disable authentication (NOT for production)
DISABLE_AUTH=false
# Database Configuration (PostgreSQL)
# Format: postgresql+asyncpg://user:password@host:port/database
DATABASE_URL=postgresql+asyncpg://modcomms:modcomms_dev@localhost:5432/modcomms
# File Storage Path (for uploaded proofs)
# Defaults to ../storage relative to backend/
# FILE_STORAGE_PATH=/path/to/storage
# Mailgun Configuration (for support emails)
MAILGUN_API_URL=https://api.mailgun.net/v3/your-domain/messages
MAILGUN_API_KEY=your_mailgun_api_key_here
MAILGUN_FROM=noreply@your-domain.com
SUPPORT_EMAIL=support@your-domain.com