forked from StellarEdu/StellarEduPay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
48 lines (41 loc) · 1.73 KB
/
Copy path.env.example
File metadata and controls
48 lines (41 loc) · 1.73 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
# Required Configuration
MONGO_URI=mongodb://localhost:27017/stellaredupay
SCHOOL_WALLET_ADDRESS=your_public_key_here
STELLAR_NETWORK_PASSPHRASE=hero canyon famous random surface crouch outer cream tone blood other hand exact need athlete despair veteran ahead wrist pond drum argue correct vehicle
# Server Environment
PORT=5000
# Ledgers that must close after a tx's ledger before it is 'confirmed'.
CONFIRMATION_THRESHOLD=2
# Ledgers that must close after a tx's ledger before it is 'finalized'
# (practically irreversible). Must be >= CONFIRMATION_THRESHOLD. Defaults to
# 5x CONFIRMATION_THRESHOLD when unset. See docs/stellar-integration.md.
FINALIZATION_THRESHOLD=10
POLL_INTERVAL_MS=30000
RETRY_INTERVAL_MS=60000
RETRY_MAX_ATTEMPTS=10
# --- IDEMPOTENCY ---
# TTL for stored idempotency records (replay/reuse protection window). Default 24h.
IDEMPOTENCY_KEY_TTL_SECONDS=86400
# How long an in-flight reservation is honored before a new request may take it
# over (guards against a crashed request wedging a key). Default 30s.
IDEMPOTENCY_IN_FLIGHT_TTL_MS=30000
# --- API CONFIGURATION ---
PORT=8080
ENV=development # development, staging, production
API_SECRET_KEY=your_super_secret_jwt_key_here
# --- DATABASE (PostgreSQL) ---
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=password
DB_NAME=stellaredupay
DB_SSL_MODE=disable
# --- STELLAR NETWORK CONFIGURATION ---
# Use 'testnet' for local development
STELLAR_NETWORK=testnet
STELLAR_HORIZON_URL=https://horizon-testnet.stellar.org
# The Master Issuer account for the platform
STELLAR_ISSUER_PUBLIC_KEY=GASF7IXHNARGRJKDIW7NKXEV7KGKO6E4K7DOPD2LZL6GQD22FUNGELW2
STELLAR_ISSUER_SECRET_KEY=SB6V4IE4YTKUM7EFX67XLZAF4WG47I33RTR5ATX44J67NT6KCMXE25XO
# --- LOGGING & DEBUGGING ---
LOG_LEVEL=debug