-
Notifications
You must be signed in to change notification settings - Fork 173
Expand file tree
/
Copy path.env.example
More file actions
63 lines (46 loc) · 2.76 KB
/
Copy path.env.example
File metadata and controls
63 lines (46 loc) · 2.76 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
# ─────────────────────────────────────────────
# REQUIRED — the server will exit on startup if
# any of these are missing or empty.
# ─────────────────────────────────────────────
# Soroban contract ID for Freighter pledge signing (deploy with `npm run deploy:contract`)
CONTRACT_ID=
# ─────────────────────────────────────────────
# OPTIONAL — sensible defaults are shown below.
# ─────────────────────────────────────────────
# HTTP port the Express server listens on (default: 3001)
PORT=3001
# Logging verbosity: debug | info | warn | error | silent (default: info)
LOG_LEVEL=info
# SQLite database file path (default: backend/data/campaigns.db)
# DB_PATH=backend/data/campaigns.db
# Comma-separated asset codes accepted by the API (default: USDC,XLM)
ALLOWED_ASSETS="USDC,XLM,ARS"
# Comma-separated origins allowed by CORS
# Use * for wildcard (allows all origins, recommended for local development)
# In production, specify exact origins (e.g., https://stellar-goal-vault.vercel.app)
# Default: * (allows all origins)
ALLOWED_ORIGINS="*"
# Soroban RPC endpoint (default: Stellar testnet)
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org:443
# Stellar network passphrase (default: testnet)
SOROBAN_NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
# Decimal scaling between display amounts and on-chain units (default: 2)
CONTRACT_AMOUNT_DECIMALS=2
# Maximum pledge per contributor across a single campaign, 0 = no limit (default: 0)
DEFAULT_MAX_PER_CONTRIBUTOR=0
# Comma-separated ASSET_CODE:CONTRACT_ADDRESS pairs for on-chain asset lookup
# ASSET_ADDRESSES=XLM:CDLZFC3SYJYDZT7K3SSTH3YCUY6AFMCO3Y6S3G7FEYZNVNREK7Y6CYN5,USDC:CA6WSTPZ7RRCUC6H37CQFODG763XG2HXP2G6F367VCOGGVDP32P7665E
# ─────────────────────────────────────────────
# PRODUCTION FEATURES (optional)
# ─────────────────────────────────────────────
# Node environment: development | production (default: development)
# NODE_ENV=production
# API key authentication (comma-separated list of valid API keys)
# Only enforced when NODE_ENV=production
# API_KEYS=key1,key2,key3
# Redis cache URL for production deployments
# Format: redis://[:password@]host[:port][/db]
# Only used when NODE_ENV=production
# REDIS_URL=redis://localhost:6379
# Cache TTL in seconds (default: 300)
# CACHE_TTL=300