- Add .env.example with all configuration options documented - Remove ADMIN_PASSWORD from .env files - Set password via environment variable or --reset-admin-password flag
22 lines
508 B
Text
22 lines
508 B
Text
# Database connection settings
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_USER=mailadmin
|
|
DB_PASSWORD=your-database-password
|
|
DB_NAME=mailserver
|
|
|
|
# Security - JWT secret must be at least 32 characters
|
|
JWT_SECRET=your-secret-key-at-least-32-chars
|
|
|
|
# Admin user (optional - use --reset-admin-password to set password)
|
|
ADMIN_USER=admin
|
|
|
|
# SMTP settings for password reset emails
|
|
SMTP_HOST=localhost
|
|
SMTP_PORT=587
|
|
SMTP_USER=
|
|
SMTP_PASSWORD=
|
|
SMTP_FROM=noreply@yourdomain.com
|
|
|
|
# Application URL
|
|
BASE_URL=http://localhost:8080
|