Files
mkcertWeb/examples/email-gmail.env
Jeff Caldwell 950560c914 notifications!
2025-08-29 01:38:34 -04:00

32 lines
1.1 KiB
Bash

# Example Email Configuration for Gmail
# 1. Enable email notifications
EMAIL_NOTIFICATIONS_ENABLED=true
# 2. Gmail SMTP Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-16-character-app-password # Generate at https://myaccount.google.com/apppasswords
SMTP_TLS_REJECT_UNAUTHORIZED=true
# 3. Email settings
EMAIL_FROM=mkcert-web-ui@gmail.com
EMAIL_TO=admin@company.com,devops@company.com,security@company.com
EMAIL_SUBJECT=🔒 Certificate Expiry Alert - mkcert Web UI
# 4. Certificate Monitoring
CERT_MONITORING_ENABLED=true
CERT_CHECK_INTERVAL=0 8 * * * # Daily at 8 AM
CERT_WARNING_DAYS=30 # Start warnings 30 days before expiry
CERT_CRITICAL_DAYS=7 # Critical alerts 7 days before expiry
CERT_MONITOR_UPLOADED=true # Also monitor uploaded certificates
# Steps to set up Gmail:
# 1. Enable 2-factor authentication on your Google account
# 2. Go to https://myaccount.google.com/apppasswords
# 3. Generate an "App Password" for "mkcert Web UI"
# 4. Use that 16-character password above (not your regular Gmail password)
# 5. Test with the web UI "Send Test Email" button