-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy path.env.example
More file actions
60 lines (45 loc) · 2.62 KB
/
Copy path.env.example
File metadata and controls
60 lines (45 loc) · 2.62 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
# Database
DATABASE_URL="postgresql://user:password@localhost:5433/flowfi?schema=public"
# Server
PORT=3001
NODE_ENV=development
CORS_ALLOWED_ORIGINS="https://app.flowfi.xyz,https://flowfi.xyz"
# Comma-separated list of allowed origins for CORS. In development, if unset,
# defaults to http://localhost:3000
# Stellar Network (Testnet/Mainnet)
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# Enable sandbox mode
SANDBOX_MODE_ENABLED=true
# Optional: Use a separate database for sandbox
# If not set, it will use {DATABASE_URL}_sandbox
SANDBOX_DATABASE_URL="postgresql://user:password@localhost:5433/flowfi_sandbox?schema=public"
# ─── Soroban Event Indexer ────────────────────────────────────────────────────
# Soroban RPC endpoint (testnet default shown)
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
# Deployed FlowFi stream contract address (C...)
# Leave empty to disable the event indexer
STREAM_CONTRACT_ID=
# How often the indexer polls for new events (milliseconds, default: 5000)
INDEXER_POLL_INTERVAL_MS=5000
# Ledger sequence to start indexing from on first run (0 = latest)
INDEXER_START_LEDGER=0
# Max stream creation requests per wallet per minute (default: 10)
STREAM_CREATE_RATE_LIMIT=10
# Server-side Stellar secret key used to sign and submit on-chain transactions
# (cancel_stream, top_up_stream). Must be funded on the target network.
KEEPER_SECRET_KEY=
# ─── Auth ─────────────────────────────────────────────────────────────────────
# Secret used to sign JWTs (generate with: openssl rand -hex 32)
JWT_SECRET=
# Stellar public key of the admin user (for /v1/admin/* endpoints)
ADMIN_PUBLIC_KEY=
# ─── Redis (optional) ────────────────────────────────────────────────────────
# When set, enables horizontal SSE scaling via Redis pub/sub so events
# emitted by any backend instance are broadcast to clients on all instances.
# Leave empty to run in single-instance mode (no Redis required).
REDIS_URL=
# ─── Caching (optional) ───────────────────────────────────────────────────────
# Time in milliseconds between periodic sweeps to prune expired memory cache
# entries (default: 60000)
MEMORY_CACHE_SWEEP_MS=60000