-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
90 lines (70 loc) · 2.11 KB
/
.env.example
File metadata and controls
90 lines (70 loc) · 2.11 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
# Environment Variables Template for Avian API Server
# Copy this file to .env and configure your settings
# This is a public API that doesn't require authentication
# ===================
# CORE CONFIGURATION
# ===================
# Application Settings
API_REQUEST_ID=avn-api-server
API_DEBUG=false
API_LOG_LEVEL=INFO
# Server Configuration
API_HOST=0.0.0.0
API_PORT=3002
# Security (Optional - auto-generated if not provided)
# You can optionally set a custom secret key:
# API_SECRET_KEY=your-custom-secret-key-here
# ===================
# BLOCKCHAIN RPC
# ===================
# RPC Connection (Option 1: Individual components)
API_RPC_HOST=127.0.0.1
API_RPC_PORT=8767
API_RPC_USER=your-rpc-username
API_RPC_PASSWORD=your-rpc-password
# RPC Connection (Option 2: Full endpoint URL - overrides above)
# API_RPC_ENDPOINT=http://username:password@127.0.0.1:8767/
# ===================
# CACHING & REDIS
# ===================
# Cache timeout in seconds
API_CACHE_TIMEOUT=1800
# Redis URL for caching and Socket.IO message queue
# Leave empty to use simple in-memory cache
REDIS_URL=redis://localhost:6379/0
# ===================
# SECURITY & LIMITS
# ===================
# Rate Limiting
API_RATE_LIMIT_ENABLED=true
API_RATE_LIMIT_PER_MINUTE=60
# CORS Settings
# Use "*" for all origins or comma-separated list: "https://example.com,https://app.example.com"
API_CORS_ORIGINS=*
# Request Settings
API_REQUEST_TIMEOUT=30
API_MAX_RETRIES=3
API_MAX_INPUT_LENGTH=1000
# ===================
# PAGINATION LIMITS
# ===================
# Block and transaction pagination
API_BLOCK_PAGE_SIZE=10
API_TX_PAGE_SIZE=25
API_MAX_ADDRESS_HISTORY=1000
API_MAX_BLOCK_RANGE=100
# ===================
# LOGGING
# ===================
# Log format
API_LOG_FORMAT="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
# ===================
# PRODUCTION DEPLOYMENT
# ===================
# For production deployment, also consider:
# - Setting up proper SSL/TLS certificates
# - Using a reverse proxy (nginx/apache)
# - Setting up log rotation
# - Configuring firewall rules
# - Using a process manager (systemd/supervisor)
# - Setting up monitoring and alerting