-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
43 lines (37 loc) · 1.65 KB
/
env.example
File metadata and controls
43 lines (37 loc) · 1.65 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
42
43
# ================================
# DATABASE CONFIGURATION
# ================================
# PostgreSQL database connection string
# Format: postgresql://username:password@host:port/database
DATABASE_URL="postgresql://username:password@localhost:5432/waitlist"
# ================================
# REDIS CONFIGURATION
# ================================
# Redis connection string (supports both redis:// and rediss:// for TLS)
# Local Redis: redis://localhost:6379
# Upstash Redis via Redis protocol: rediss://default:password@host:6379
REDIS_URL="redis://localhost:6379"
# ================================
# NEXT.JS CONFIGURATION
# ================================
# Environment (development, production)
NODE_ENV="development"
# Your app's public URL (for metadata and redirects)
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# Discord community invite link (optional)
NEXT_PUBLIC_DISCORD_INVITE="https://discord.gg/your-invite-code"
# ================================
# DISCORD WEBHOOK CONFIGURATION
# ================================
# Discord webhook URL for notifications (optional)
# Get this from your Discord server settings > Integrations > Webhooks
DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/YOUR_WEBHOOK_ID/YOUR_WEBHOOK_TOKEN"
# ================================
# SECURITY FEATURES ENABLED
# ================================
# ✅ Redis-based rate limiting (10 requests/minute per IP)
# ✅ Unique email constraint in PostgreSQL
# ✅ Automatic duplicate email handling
# ✅ Discord webhook spam protection with multiple validation layers
# ✅ Content-based spam detection for Discord notifications
# ✅ Global and IP-based rate limiting for Discord webhooks