forked from Manuel1234477/Stellar-Micro-Donation-API
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
59 lines (45 loc) · 1.71 KB
/
.env.example
File metadata and controls
59 lines (45 loc) · 1.71 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
# Server Configuration
PORT=3000
NODE_ENV=development
# Stellar Network Configuration
# Switch networks by changing STELLAR_NETWORK value
# Supported values: testnet (default), mainnet, futurenet
# No code changes required - just update this value and restart
STELLAR_NETWORK=testnet
# Optional: Custom Horizon URL (overrides preset for STELLAR_NETWORK)
# Leave commented to use default URL for selected network
# HORIZON_URL=https://horizon-testnet.stellar.org
# Network Presets (for reference):
# testnet: https://horizon-testnet.stellar.org
# mainnet: https://horizon.stellar.org
# futurenet: https://horizon-futurenet.stellar.org
# Mock Stellar Service
# Set to 'true' to use mock service for testing without network calls
# Set to 'false' or omit to use real Stellar network
MOCK_STELLAR=false
# Database Configuration
DB_TYPE=sqlite
DB_PATH=./donations.db
# API Configuration
API_PREFIX=/api/v1
RATE_LIMIT=100
# API Key Protection
# Comma-separated list of valid API keys for protected endpoints
# Generate strong random values, e.g.: openssl rand -hex 32
API_KEYS=your-api-key-here,another-key-if-needed
# Optional: Stellar Account (for service operations)
# SERVICE_SECRET_KEY=your_stellar_secret_key_here
# Donation Amount Limits
# Minimum donation amount in XLM (default: 0.01)
MIN_DONATION_AMOUNT=0.01
# Maximum donation amount in XLM (default: 10000)
MAX_DONATION_AMOUNT=10000
# Maximum daily donation per donor (optional, 0 = no limit)
MAX_DAILY_DONATION_PER_DONOR=0
# Logging Configuration
# Enable file logging (default: false, logs only to console)
LOG_TO_FILE=false
# Log directory path (default: ./logs)
LOG_DIR=./logs
# Enable verbose logging (includes request/response bodies in console)
LOG_VERBOSE=false