new toy
This commit is contained in:
31
split-proxy/example.env
Normal file
31
split-proxy/example.env
Normal 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
|
||||
Reference in New Issue
Block a user