-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
41 lines (32 loc) · 1.22 KB
/
Copy path.env.example
File metadata and controls
41 lines (32 loc) · 1.22 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
# Server Configuration
PORT=3000
NODE_ENV=development
# Security Settings
# Trust proxy - Set to number of proxies (e.g., 1) or specific IPs (e.g., "loopback, 10.0.0.0/8")
# For Cloudflare: use "true" or specific Cloudflare IPs
# Documentation: https://expressjs.com/en/guide/behind-proxies.html
TRUST_PROXY=1
# CORS Configuration
# Allowed origins - Use "*" for public API, or specific domains for restricted access
# Multiple origins: "https://example.com,https://app.example.com"
# For production, always specify exact origins
CORS_ORIGIN=*
# Rate Limiting (Per-IP limits)
# Maximum requests per IP within the time window
RATE_LIMIT_MAX=60
# Time window in milliseconds (60000 = 1 minute)
RATE_LIMIT_WINDOW_MS=60000
# Data Configuration
# Path to rejection reasons file
REASONS_FILE_PATH=./data/reasons.json
# Logging
# Log level: error, warn, info, debug
LOG_LEVEL=info
# Optional: Custom rate limit message
RATE_LIMIT_MESSAGE=Too many requests, please try again later.
# Optional: API Key for protected endpoints (if implementing authentication)
# API_KEY=your-secret-api-key-here
# Optional: Sentry DSN for error tracking
# SENTRY_DSN=https://your-sentry-dsn
# Optional: Custom health check endpoint path
# HEALTH_CHECK_PATH=/health