This commit is contained in:
Para Dox
2025-06-01 19:45:38 +07:00
parent 367a1890e8
commit 62928caa7a
11 changed files with 960 additions and 0 deletions

31
split-proxy/example.env Normal file
View File

@@ -0,0 +1,31 @@
# Primary and Secondary RPC endpoints
PRIMARY_RPC=http://primary-endpoint:8545
SECONDARY_RPC=http://secondary-endpoint:8545
# Which endpoint to use as primary (stream response from this one)
# Options: 'primary' or 'secondary'
PRIMARY_ROLE=primary
# Latency threshold in milliseconds
# Log warning if secondary is slower than primary by this amount
LATENCY_THRESHOLD_MS=1000
# Size difference threshold in bytes
# Log full response if size differs by more than this
SIZE_DIFF_THRESHOLD=100
# Whether to log mismatches
LOG_MISMATCHES=true
# Server port
PORT=8545
# Request timeout in milliseconds
REQUEST_TIMEOUT=30000
# Log level (debug, info, warn, error)
LOG_LEVEL=info
# DNS refresh interval in milliseconds
# Important for Docker environments where container IPs can change
DNS_REFRESH_INTERVAL=1000