forked from CurrentDao-org/CurrentDao-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env - Copy.example
More file actions
29 lines (21 loc) · 835 Bytes
/
Copy path.env - Copy.example
File metadata and controls
29 lines (21 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Example environment variables
PORT=3000
NODE_ENV=development
# CORS Configuration
# Comma-separated list of allowed origins for production
CORS_ALLOWED_ORIGINS=https://app.currentdao.com,https://www.currentdao.com
# Development-specific CORS origins (optional)
CORS_DEV_ORIGINS=http://localhost:4200,http://localhost:8080
# Staging-specific CORS origins (optional)
CORS_STAGING_ORIGINS=https://staging.currentdao.com
# Security Configuration
# API rate limiting (requests per minute)
RATE_LIMIT_TTL=60
RATE_LIMIT_MAX=100
# Session configuration
SESSION_SECRET=your-super-secret-session-key-change-in-production
# Helmet security (automatically configured based on NODE_ENV)
# HSTS max-age in seconds (default: 31536000 for production)
HSTS_MAX_AGE=31536000
# Content Security Policy report URI
CSP_REPORT_URI=/api/csp-report