This repository was archived by the owner on May 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
60 lines (52 loc) · 2.29 KB
/
Copy path.env.example
File metadata and controls
60 lines (52 loc) · 2.29 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Timeless-Heroes Environment Variables
# Copy this file to .env and fill in your values
# ============================================================================
# DATABASE
# ============================================================================
POSTGRES_USER=timeless
POSTGRES_PASSWORD=timeless_secret
POSTGRES_DB=timeless_heroes
DATABASE_URL=postgresql://timeless:timeless_secret@localhost:5432/timeless_heroes
# ============================================================================
# REDIS
# ============================================================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=redis_secret
REDIS_DB=0
# ============================================================================
# JWT / AUTH (REQUIRED)
# ============================================================================
# IMPORTANT: JWT_SECRET is required and must be at least 32 characters!
# Generate a secure secret with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
JWT_SECRET=change-me-in-production-minimum-32-chars
JWT_EXPIRES_IN=7d
# ============================================================================
# NATS (Microservice Communication)
# ============================================================================
NATS_URL=nats://localhost:4222
# ============================================================================
# STRIPE
# ============================================================================
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
# ============================================================================
# SERVICE PORTS
# ============================================================================
PORT=3000
PROGRESSION_PORT=3001
WORKER_PORT=3002
PAYMENT_PORT=3003
# ============================================================================
# GAME CONFIGURATION
# ============================================================================
MAX_CPS=20
THROTTLE_WINDOW_MS=1000
MAX_VIOLATIONS=10
BAN_DURATION_MS=300000
# ============================================================================
# ENVIRONMENT
# ============================================================================
NODE_ENV=development
CORS_ORIGIN=*