-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example
More file actions
54 lines (46 loc) · 3.26 KB
/
Copy path.env.example
File metadata and controls
54 lines (46 loc) · 3.26 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
# ─── Server ───────────────────────────────────────────────────────────────────
PORT=8080
HOST=0.0.0.0
RUST_LOG=info
# ─── Database ─────────────────────────────────────────────────────────────────
DATABASE_URL=postgres://stellarsend:password@localhost:5432/stellarsend
DATABASE_MAX_CONNECTIONS=20
DATABASE_MIN_CONNECTIONS=2
DATABASE_CONNECT_TIMEOUT_SECS=30
# ─── JWT Authentication ────────────────────────────────────────────────────────
JWT_SECRET=your-super-secret-jwt-key-change-in-production-min-32-chars
JWT_EXPIRY_HOURS=24
# ─── Stellar Horizon ──────────────────────────────────────────────────────────
# Testnet
HORIZON_URL=https://horizon-testnet.stellar.org
# Mainnet (uncomment for production)
# HORIZON_URL=https://horizon.stellar.org
STELLAR_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
# Mainnet passphrase
# STELLAR_NETWORK_PASSPHRASE=Public Global Stellar Network ; September 2015
# ─── Soroban / Keeper ─────────────────────────────────────────────────────────
# Soroban RPC endpoint used to simulate/submit/poll contract invocations.
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
# The keeper is a funded SERVICE ACCOUNT (never a user's wallet) that pays
# network fees and invokes execute_subscription / release_escrow /
# refund_escrow once conditions are met on-chain. Leave unset to disable
# keeper-dependent endpoints (they'll return 503 KEEPER_UNAVAILABLE).
KEEPER_SECRET_KEY=
# Deployed Soroban contract ids (from the StellarSend/contracts repo).
SUBSCRIPTION_CONTRACT_ID=
ESCROW_CONTRACT_ID=
# How often the background keeper loop scans for due subscriptions.
KEEPER_POLL_INTERVAL_SECS=60
# Set to false to disable the background loop (manual /api/keeper/run-subscriptions still works).
KEEPER_ENABLED=true
# ─── Exchange Rates ───────────────────────────────────────────────────────────
# Seconds before the rate cache is invalidated
RATE_CACHE_TTL_SECS=60
# Optional: external rate oracle API key (leave blank to use Stellar DEX only)
RATE_ORACLE_API_KEY=
# ─── CORS ─────────────────────────────────────────────────────────────────────
# Comma-separated list of allowed origins, or * for all
ALLOWED_ORIGINS=*
# ─── App ──────────────────────────────────────────────────────────────────────
APP_ENV=development
# APP_ENV=production