-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.production
More file actions
122 lines (98 loc) · 2.69 KB
/
Copy path.env.production
File metadata and controls
122 lines (98 loc) · 2.69 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
# Bitcoin SV Production Mining Configuration
# Copy this to .env for production deployment with live mining
# ===== BITCOIN SV NETWORK CONFIGURATION =====
# Enable live Bitcoin SV network connectivity and mining
BITCOIN_LIVE_MODE=true
# Bitcoin SV network selection (testnet recommended for initial deployment)
BITCOIN_NETWORK=testnet
# Mining configuration
BITCOIN_MINING_ADDRESS=1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa
BITCOIN_MAX_WORKERS=8
BITCOIN_MIN_WORKERS=2
# ===== MINING POOL CONFIGURATION =====
# Configure these for pool mining (leave empty for solo mining)
BITCOIN_POOL_URL=
BITCOIN_POOL_USERNAME=
BITCOIN_POOL_PASSWORD=
# Pool connection settings
BITCOIN_POOL_TIMEOUT=30s
BITCOIN_POOL_RETRY_INTERVAL=60s
# ===== NETWORK CONNECTIVITY =====
# P2P network settings
BITCOIN_MAX_PEERS=16
BITCOIN_MIN_PEERS=8
BITCOIN_CONNECTION_TIMEOUT=15s
# ===== PRODUCTION DEPLOYMENT =====
# DigitalOcean deployment configuration
DIGITAL_OCEAN_TOKEN=your_production_token_here
KUBERNETES_NAMESPACE=metamorph-production
DEPLOYMENT_ENV=production
# Resource allocation
CPU_LIMIT=4000m
MEMORY_LIMIT=8Gi
STORAGE_SIZE=100Gi
# ===== MONITORING AND LOGGING =====
# Logging configuration
LOG_LEVEL=info
ENABLE_DEBUG_LOGS=false
LOG_FORMAT=json
# Metrics and monitoring
ENABLE_METRICS=true
METRICS_PORT=9090
PROMETHEUS_ENABLED=true
# Health check configuration
HEALTH_CHECK_INTERVAL=30s
HEALTH_CHECK_TIMEOUT=10s
# ===== API AND SERVICES =====
# Portal API Gateway
PORTAL_PORT=8080
ENABLE_ARC_API=true
ENABLE_REST_API=true
# gRPC services
LEDGER_GRPC_PORT=50051
ENGINE_GRPC_PORT=50052
# Event bus configuration
EVENT_BUS_TYPE=kafka
KAFKA_BROKERS=localhost:9092
# ===== SECURITY CONFIGURATION =====
# TLS and security
ENABLE_TLS=true
TLS_CERT_PATH=/etc/ssl/certs/metamorph.crt
TLS_KEY_PATH=/etc/ssl/private/metamorph.key
# Authentication
ENABLE_AUTH=true
JWT_SECRET=your_jwt_secret_here
# ===== PERFORMANCE TUNING =====
# Mining performance
HASH_RATE_TARGET=1000000
DIFFICULTY_ADJUSTMENT_INTERVAL=300s
# Memory and CPU optimization
GO_MAX_PROCS=8
GO_GC_PERCENT=100
# Network buffer sizes
NETWORK_READ_BUFFER=65536
NETWORK_WRITE_BUFFER=65536
# ===== BACKUP AND RECOVERY =====
# Blockchain data backup
ENABLE_BACKUP=true
BACKUP_INTERVAL=24h
BACKUP_RETENTION=7d
# Database configuration
DB_TYPE=postgresql
DB_HOST=localhost
DB_PORT=5432
DB_NAME=metamorph_production
DB_USER=metamorph
DB_PASSWORD=secure_password_here
# ===== ALERTING =====
# Alert configuration
ENABLE_ALERTS=true
ALERT_EMAIL=admin@example.com
ALERT_WEBHOOK=https://hooks.slack.com/your/webhook/url
# Mining alerts
ALERT_ON_MINING_STOPPED=true
ALERT_ON_POOL_DISCONNECT=true
ALERT_ON_LOW_HASH_RATE=true
# Performance thresholds
MIN_HASH_RATE_THRESHOLD=500000
MAX_BLOCK_TIME_THRESHOLD=600s