Configuration
This section covers the configuration options available in nginx waf.
Environment Variables
nginx waf can be configured using environment variables. These can be set in a .env
file or directly in the environment.
Database Configuration
bash
# Database connection
DATABASE_URL="postgresql://nginx_love_user:nginx_love_password@localhost:5432/nginx_love_db?schema=public"
1
2
3
2
3
Application Configuration
bash
# Application
NODE_ENV=production
PORT=3000
HOST=0.0.0.0
# JWT Secret
JWT_SECRET=your-secret-key
JWT_EXPIRES_IN=7d
JWT_ACCESS_EXPIRES_IN=15m
JWT_REFRESH_SECRET=your-secret-key
### Email Configuration
```bash
# SMTP
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=noreply@example.com
SMTP_PASSWORD=password
SMTP_FROM=noreply@example.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22