forked from MyFanss/MyFans
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.dev.example
More file actions
64 lines (56 loc) · 2.59 KB
/
Copy path.env.dev.example
File metadata and controls
64 lines (56 loc) · 2.59 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
61
62
63
64
# =============================================================================
# MyFans — Dev Stack Environment Variables
#
# Copy this file to .env.dev and fill in every value marked REQUIRED.
# NEVER commit .env.dev to version control.
# =============================================================================
# Application
NODE_ENV=development
# PORT must match the container port exposed in docker-compose.dev.yml (3001)
PORT=3001
# -----------------------------------------------------------------------------
# Database (REQUIRED)
# These values must match the postgres service in docker-compose.dev.yml
# -----------------------------------------------------------------------------
DB_HOST=postgres
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=myfans
# -----------------------------------------------------------------------------
# Authentication (REQUIRED)
# Generate with: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
# -----------------------------------------------------------------------------
JWT_SECRET=dev-jwt-secret-change-me-to-a-strong-random-value
# -----------------------------------------------------------------------------
# Redis (optional — used for caching; defaults work with docker-compose.dev.yml)
# -----------------------------------------------------------------------------
REDIS_HOST=redis
REDIS_PORT=6379
# -----------------------------------------------------------------------------
# Stellar / Soroban
# Safe testnet defaults for local development
# -----------------------------------------------------------------------------
STELLAR_NETWORK=testnet
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
SOROBAN_RPC_TIMEOUT=5000
# -----------------------------------------------------------------------------
# Startup Probes
# degraded = warn and continue (safe for local dev)
# -----------------------------------------------------------------------------
STARTUP_MODE=degraded
STARTUP_PROBE_DB=true
STARTUP_DB_RETRIES=5
STARTUP_DB_RETRY_DELAY_MS=2000
STARTUP_PROBE_RPC=false
# -----------------------------------------------------------------------------
# CORS
# -----------------------------------------------------------------------------
CORS_ALLOWED_ORIGINS=http://localhost:3000,http://localhost:3001
# -----------------------------------------------------------------------------
# Feature Flags (all off by default for local dev)
# -----------------------------------------------------------------------------
FEATURE_NEW_SUBSCRIPTION_FLOW=false
FEATURE_CRYPTO_PAYMENTS=false
FEATURE_REFERRAL_CODES=false
FEATURE_SOROBAN_POLLER=false