mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
Harden API process under production load
This commit is contained in:
@@ -19,6 +19,17 @@ API_PORT=3334
|
||||
# Keep API_BIND_HOST as 127.0.0.1 when a reverse proxy terminates public traffic.
|
||||
API_BIND_HOST=127.0.0.1
|
||||
API_PUBLIC_PORT=3334
|
||||
API_MAX_CONNECTIONS=512
|
||||
API_REQUEST_TIMEOUT_MS=15000
|
||||
API_HEADERS_TIMEOUT_MS=10000
|
||||
API_KEEP_ALIVE_TIMEOUT_MS=5000
|
||||
API_SOCKET_TIMEOUT_MS=15000
|
||||
API_TLS_HANDSHAKE_TIMEOUT_MS=3000
|
||||
API_LISTEN_BACKLOG=1024
|
||||
API_NODE_ARGS=--max-old-space-size=512
|
||||
API_MAX_MEMORY_RESTART=768M
|
||||
API_KILL_TIMEOUT_MS=5000
|
||||
API_RESTART_DELAY_MS=2000
|
||||
|
||||
# Plain TCP Stratum ports accept both SV1 JSON-RPC and SV2 Noise/binary traffic.
|
||||
STRATUM_PORTS=3333,3332,3331,3330
|
||||
|
||||
Reference in New Issue
Block a user