forked from Fundable-Protocol/stellar_client_os
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
64 lines (49 loc) · 2.56 KB
/
Copy path.env.example
File metadata and controls
64 lines (49 loc) · 2.56 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
# Network configuration
NETWORK=testnet
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
# Account used for deployment
STELLAR_SECRET_KEY=your_secret_key_here
# Network Passphrase
TESTNET_NETWORK_PASSPHRASE="Test SDF Network ; September 2015"
# Optional: Custom network passphrases
MAINNET_NETWORK_PASSPHRASE="Public Global Stellar Network ; September 2015"
# ── TTL Renewal Bot (issue #536) ──────────────────────────────────────────────
# Secret key of the account that pays for rent-bump transactions
BOT_SECRET_KEY=your_bot_secret_key_here
# Comma-separated list of Soroban contract IDs to monitor
CONTRACT_IDS=CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSC4
# Ledgers remaining before a rent bump is triggered (default: 50000 ≈ 3 days)
WARNING_THRESHOLD_LEDGERS=50000
# Target TTL extension in ledgers (default: 500000 ≈ 30 days)
EXTEND_TO_LEDGERS=500000
# Seconds between scan cycles (default: 300 = 5 minutes)
POLL_INTERVAL_SECONDS=300
# Set to "true" to log actions without submitting transactions
# ── CDC Event Indexer (issue #531) ────────────────────────────────────────────
# PostgreSQL connection string
DATABASE_URL=postgresql://localhost:5432/fundable_indexer
# Soroban contract IDs to index (comma-separated)
CONTRACT_IDS=CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABSC4
# Seconds between event poll cycles (default: 5)
POLL_INTERVAL_SECONDS=5
# Ledgers to look back on first start when no cursor exists (default: 1000)
LEDGER_LOOKBACK=1000
# Max events fetched per poll cycle (default: 200)
MAX_EVENTS_PER_POLL=200
# Unique identifier for the cursor row in cdc_cursors table (default: fundable_stream_indexer)
INDEXER_ID=fundable_stream_indexer
# Set to "true" to parse events but skip all DB writes
DRY_RUN=false
# ---------------------------------------------------------------------------
# S3 presigned uploads — POST /api/presign-upload
# Generates short-lived pre-signed PUT URLs for milestone proof photos.
# The IAM user needs s3:PutObject on the evidence bucket (private by default).
# ---------------------------------------------------------------------------
AWS_REGION=us-east-1
AWS_S3_BUCKET=your-evidence-bucket
AWS_ACCESS_KEY_ID=your_access_key_id
AWS_SECRET_ACCESS_KEY=your_secret_access_key
# Optional STS session token for temporary credentials
# AWS_SESSION_TOKEN=
# URL lifetime in seconds (bounded 60..900, default 300)
S3_PRESIGN_EXPIRES_SECONDS=300