Updated backend
- Added better anti DoS protection - Added better security measures (HTTP headers, etc.) - Added TLS support - Added support for configurable rate limiting - Added default 404 and error handling - Updated proxy settings - Updated env naming
This commit is contained in:
19
.env.sample
19
.env.sample
@@ -1,11 +1,22 @@
|
||||
PORT=3000
|
||||
PORT=80
|
||||
DOMAIN="http://localhost:3000"
|
||||
DATABASE_HOST="127.0.0.1"
|
||||
DATABASE_NAME=hsp_gdh
|
||||
DATABASE_USER=hsp_gdh
|
||||
DATABASE_PASSWORD=""
|
||||
JWT_SECRET=""
|
||||
SMTP=
|
||||
MAIL=
|
||||
MAIL_PASS=
|
||||
MAIL_SERVER=
|
||||
MAIL_ADDRESS=
|
||||
MAIL_PASSWORD=
|
||||
BEHIND_PROXY=false
|
||||
DISABLE_EMAIL_VERIFICATION=true
|
||||
DISABLE_2_FACTOR_AUTHENTICATION=true
|
||||
DISABLE_ANTI_DOS=true
|
||||
DISABLE_ANTI_SPAM=true
|
||||
RATE_LIMIT_REQUESTS=100
|
||||
RATE_LIMIT_LOGIN_ATTEMPTS=5
|
||||
RATE_LIMIT_VERIFICATION_REQUESTS=5
|
||||
ENABLE_HTTPS=false
|
||||
HTTPS_PORT=443
|
||||
HTTPS_KEY=domain.key
|
||||
HTTPS_CERT=domain.crt
|
||||
|
||||
Reference in New Issue
Block a user