-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy path.env.example
More file actions
110 lines (94 loc) · 4.66 KB
/
.env.example
File metadata and controls
110 lines (94 loc) · 4.66 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# =============================================================================
# Callora Backend — Environment Variables
# Copy this file to .env and fill in your values.
# Never commit .env to version control.
# =============================================================================
# -----------------------------------------------------------------------------
# Server
# -----------------------------------------------------------------------------
PORT=3000
NODE_ENV=development # development | production | test
# -----------------------------------------------------------------------------
# Database — primary connection string (used by Prisma / pg.Pool)
# -----------------------------------------------------------------------------
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/callora?schema=public
# -----------------------------------------------------------------------------
# Database — individual fields (used by health checks and direct Pool creation)
# -----------------------------------------------------------------------------
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=callora
# -----------------------------------------------------------------------------
# Database — connection pool tuning
# -----------------------------------------------------------------------------
DB_POOL_MAX=10
DB_IDLE_TIMEOUT_MS=30000
DB_CONN_TIMEOUT_MS=2000
# -----------------------------------------------------------------------------
# Auth — REQUIRED, app will not start without these
# -----------------------------------------------------------------------------
JWT_SECRET=your-jwt-secret-here
ADMIN_API_KEY=your-admin-api-key-here
METRICS_API_KEY=your-metrics-api-key-here
# -----------------------------------------------------------------------------
# Proxy / Gateway
# -----------------------------------------------------------------------------
UPSTREAM_URL=http://localhost:4000
PROXY_TIMEOUT_MS=30000
# -----------------------------------------------------------------------------
# CORS — comma-separated list of allowed origins
# -----------------------------------------------------------------------------
CORS_ALLOWED_ORIGINS=http://localhost:5173
# -----------------------------------------------------------------------------
# Soroban RPC (optional — set SOROBAN_RPC_ENABLED=true to activate)
# -----------------------------------------------------------------------------
SOROBAN_RPC_ENABLED=false
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
SOROBAN_RPC_TIMEOUT=2000
SOROBAN_BILLING_RPC_URL=https://soroban-testnet.stellar.org
SOROBAN_BILLING_CONTRACT_ID=your-vault-contract-id
SOROBAN_BILLING_NETWORK_PASSPHRASE=Test SDF Network ; September 2015
SOROBAN_BILLING_SOURCE_ACCOUNT=your-backend-source-account
SOROBAN_BILLING_BACKEND_SECRET_KEY=your-backend-secret-key
SOROBAN_BILLING_BALANCE_FN=balance
SOROBAN_BILLING_DEDUCT_FN=deduct
SOROBAN_BILLING_RPC_TIMEOUT_MS=5000
# -----------------------------------------------------------------------------
# Horizon (optional — set HORIZON_ENABLED=true to activate)
# -----------------------------------------------------------------------------
HORIZON_ENABLED=false
HORIZON_URL=https://horizon-testnet.stellar.org
HORIZON_TIMEOUT=2000
# -----------------------------------------------------------------------------
# Stellar / Soroban network selection
# -----------------------------------------------------------------------------
STELLAR_NETWORK=testnet
# SOROBAN_NETWORK=testnet
# Active network-specific endpoints and contracts used by transaction building
STELLAR_TESTNET_HORIZON_URL=https://horizon-testnet.stellar.org
SOROBAN_TESTNET_RPC_URL=https://soroban-testnet.stellar.org
STELLAR_TESTNET_VAULT_CONTRACT_ID=
STELLAR_TESTNET_SETTLEMENT_CONTRACT_ID=
STELLAR_MAINNET_HORIZON_URL=https://horizon.stellar.org
SOROBAN_MAINNET_RPC_URL=https://soroban-mainnet.stellar.org
STELLAR_MAINNET_VAULT_CONTRACT_ID=
STELLAR_MAINNET_SETTLEMENT_CONTRACT_ID=
# Transaction builder defaults
STELLAR_BASE_FEE=100
STELLAR_TRANSACTION_TIMEOUT=300
# TRANSACTION_TIMEOUT=300
# -----------------------------------------------------------------------------
# Health checks
# -----------------------------------------------------------------------------
HEALTH_CHECK_DB_TIMEOUT=2000
APP_VERSION=1.0.0
# -----------------------------------------------------------------------------
# Logging
# -----------------------------------------------------------------------------
LOG_LEVEL=info
# -----------------------------------------------------------------------------
# Profiling
# -----------------------------------------------------------------------------
GATEWAY_PROFILING_ENABLED=false