Add .env.example template and remove plaintext passwords
- Add .env.example with all configuration options documented - Remove ADMIN_PASSWORD from .env files - Set password via environment variable or --reset-admin-password flag
This commit is contained in:
parent
b1f24c42ab
commit
3e30f3845d
1 changed files with 22 additions and 0 deletions
22
.env.example
Normal file
22
.env.example
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
# 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue