-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
144 lines (111 loc) · 4.87 KB
/
.env.example
File metadata and controls
144 lines (111 loc) · 4.87 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Multi-Chain Blockchain Analytics Platform - Environment Configuration
# Copy this file to .env and configure your actual values
#==============================================================================
# INFLUXDB CONFIGURATION (REQUIRED)
#==============================================================================
INFLUX_URL=http://localhost:8086
INFLUX_ORG=glq-analytics
INFLUX_BUCKET=blockchain_data
INFLUX_TOKEN=your_influxdb_api_token_here
#==============================================================================
# MULTI-CHAIN CONFIGURATION
#==============================================================================
# Infura API Configuration (Required for Ethereum, Polygon, Base, Avalanche, BSC)
INFURA_PROJECT_ID=your_infura_project_id_here
# GLQ Chain RPC Configuration (Required for local GLQ Chain)
GLQ_RPC_URL=http://localhost:8545
# Enabled Chains (comma-separated list)
# Available: glq,ethereum,polygon,base,avalanche,bsc
ENABLED_CHAINS=glq,ethereum,polygon,base,avalanche,bsc
DEFAULT_CHAIN=glq
#==============================================================================
# PROCESSING CONFIGURATION
#==============================================================================
# Performance Settings
MAX_WORKERS=8
BATCH_SIZE=1000
CONNECTION_TIMEOUT=30
MAX_CONNECTIONS=20
# Logging Configuration
LOG_LEVEL=INFO
DEBUG_MODE=false
#==============================================================================
# MONITORING AND DASHBOARDS
#==============================================================================
# Monitoring Service
MONITORING_PORT=8000
WEBSOCKET_BROADCAST_INTERVAL=2
# Health Check Settings
HEALTH_CHECK_INTERVAL=60
#==============================================================================
# EXTERNAL API KEYS (OPTIONAL)
#==============================================================================
# Blockchain Explorers (for enhanced analytics)
ETHERSCAN_API_KEY=your_etherscan_api_key_here
POLYGONSCAN_API_KEY=your_polygonscan_api_key_here
BASESCAN_API_KEY=your_basescan_api_key_here
SNOWTRACE_API_KEY=your_snowtrace_api_key_here
BSCSCAN_API_KEY=your_bscscan_api_key_here
# Price Data Providers
COINGECKO_API_KEY=your_coingecko_api_key_here
COINMARKETCAP_API_KEY=your_coinmarketcap_api_key_here
#==============================================================================
# ALERTS AND NOTIFICATIONS (OPTIONAL)
#==============================================================================
# Discord Webhooks
DISCORD_WEBHOOK_URL=your_discord_webhook_url_here
DISCORD_ALERTS_ENABLED=false
# Slack Webhooks
SLACK_WEBHOOK_URL=your_slack_webhook_url_here
SLACK_ALERTS_ENABLED=false
# Email Notifications
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_email_password_or_app_password
EMAIL_ALERTS_ENABLED=false
#==============================================================================
# DATABASE ALTERNATIVES (OPTIONAL)
#==============================================================================
# PostgreSQL (if using as secondary storage)
POSTGRES_URL=postgresql://user:password@localhost:5432/glq_analytics
POSTGRES_ENABLED=false
# Redis (for caching)
REDIS_URL=redis://localhost:6379/0
REDIS_ENABLED=false
#==============================================================================
# DEVELOPMENT AND TESTING
#==============================================================================
# Custom Configuration
CUSTOM_CONFIG_PATH=config/config.yaml
# Testing Settings
TEST_MODE=false
MOCK_BLOCKCHAIN_DATA=false
# Data Retention (for development)
DEV_DATA_RETENTION_DAYS=7
#==============================================================================
# ADVANCED SETTINGS (LEAVE DEFAULT UNLESS YOU KNOW WHAT YOU'RE DOING)
#==============================================================================
# Rate Limiting
API_RATE_LIMIT_PER_SECOND=10
INFURA_RATE_LIMIT_PER_SECOND=10
# Memory Management
MAX_MEMORY_USAGE=4GB
GC_THRESHOLD=1000000
# Networking
REQUEST_TIMEOUT=30
MAX_RETRIES=3
RETRY_DELAY=1
#==============================================================================
# LEGACY COMPATIBILITY (DEPRECATED - USE MULTI-CHAIN CONFIG ABOVE)
#==============================================================================
# These are maintained for backward compatibility only
# BLOCKCHAIN_RPC_URL=http://localhost:8545
# CHAIN_ID=614
#==============================================================================
# SECURITY NOTES
#==============================================================================
# 1. Never commit the actual .env file with real credentials
# 2. Keep your API keys secure and rotate them regularly
# 3. Use environment-specific configurations for different deployments
# 4. Consider using a secrets management service for production