forked from anshuman008/solana-liquidation-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
68 lines (52 loc) · 1.82 KB
/
Copy path.env.example
File metadata and controls
68 lines (52 loc) · 1.82 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
# quickstart example env file for liquidation-indexer
DATABASE_URL=postgresql://liquidation_user:liquidation_pass@localhost:5432/liquidation_db
GRPC_ENDPOINT="your_grpc_endpoint_here"
GRPC_X_TOKEN="your_grpc_token_here"
RUST_LOG=liquidation_indexer=info,sqlx=warn
#uncomment and customize the following configurations as needed
# Database Configuration
# DB_MAX_CONNECTIONS=20
# DB_MIN_CONNECTIONS=5
# DB_CONNECTION_TIMEOUT=30
# DB_IDLE_TIMEOUT=600
# DB_MAX_LIFETIME=1800
# # gRPC Configuration
# GRPC_CONNECT_TIMEOUT=10
# GRPC_REQUEST_TIMEOUT=10
# GRPC_MAX_MESSAGE_SIZE=1073741824
# GRPC_RETRY_ATTEMPTS=3
# GRPC_RETRY_BASE_DELAY_MS=1000
# # Notification Configuration
# WEBHOOK_URLS=https://your-webhook-endpoint.com/liquidation,https://backup-webhook.com/alerts
# DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/123456789/abcdefghijklmnop
# TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
# TELEGRAM_CHAT_ID=your_telegram_chat_id_here
# NOTIFICATION_TIMEOUT=30
# NOTIFICATION_MAX_RETRIES=3
# NOTIFICATION_BASE_DELAY_MS=1000
# NOTIFICATION_MAX_DELAY_MS=30000
# NOTIFICATION_BACKOFF_MULTIPLIER=2.0
# NOTIFICATION_BATCH_SIZE=10
# NOTIFICATION_BATCH_TIMEOUT_MS=500
# # Email Configuration (optional)
# SMTP_SERVER=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USERNAME=your_email@gmail.com
# SMTP_PASSWORD=your_app_password
# SMTP_FROM_ADDRESS=liquidation-bot@yourdomain.com
# SMTP_TO_ADDRESSES=alerts@yourdomain.com,team@yourdomain.com
# # Processing Configuration
# MAX_CONCURRENT_EVENTS=50
# EVENT_TIMEOUT=30
# RETRY_INTERVAL=60
# NOTIFICATION_QUEUE_SIZE=1000
# LIQUIDATION_QUEUE_SIZE=1000
# DLQ_INTERVAL=300
# # Monitoring Configuration
# METRICS_ENABLED=true
# HEALTH_CHECK_INTERVAL=30
# LOG_LEVEL=info
# TRACING_ENABLED=true
# PROMETHEUS_PORT=9090
# # Rust Logging Configuration
# RUST_LOG=liquidation_indexer=info,tower_http=debug,sqlx=warn