Remove SMTP settings from .env.example
This commit is contained in:
parent
270cee44ff
commit
99d994544d
2 changed files with 3 additions and 10 deletions
10
.env.example
10
.env.example
|
|
@ -7,13 +7,3 @@ DB_NAME=mailserver
|
||||||
|
|
||||||
# Security - JWT secret must be at least 32 characters
|
# Security - JWT secret must be at least 32 characters
|
||||||
JWT_SECRET=your-secret-key-at-least-32-chars
|
JWT_SECRET=your-secret-key-at-least-32-chars
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
|
||||||
|
|
@ -112,6 +112,9 @@ func (c *Config) Validate() error {
|
||||||
if len(c.JWTSecret) < 32 {
|
if len(c.JWTSecret) < 32 {
|
||||||
return fmt.Errorf("JWT_SECRET must be at least 32 characters long")
|
return fmt.Errorf("JWT_SECRET must be at least 32 characters long")
|
||||||
}
|
}
|
||||||
|
if c.JWTSecret == "your-secret-key-at-least-32-chars" {
|
||||||
|
return fmt.Errorf("JWT_SECRET must not be the default value")
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue