Repository navigation
Relax proxy nginx limits for trusted internal network - #70
Merged
Merged
Conversation
The proxy sits on the internal DAppNode Docker network with no untrusted clients, so the stock nginx defaults only get in the way: 1m body limit, 4k/8k header buffers, 60s timeouts and response buffering can truncate large validator queries, slow block publishes and the /eth/v1/events stream. Open everything up and hoist the shared directives into the http block, which also removes the duplicated proxy_set_header block in both servers. - client_max_body_size 0 (unlimited) - larger client/proxy header and body buffers - 1h client/proxy/send/keepalive timeouts - proxy_buffering and proxy_request_buffering off (SSE stays open) - proxy_ignore_client_abort on, proxy_socket_keepalive on - HTTP/1.1 with Connection "" for upstream keepalive - tcp_nodelay on, server_tokens off, worker tuning
Marketen
approved these changes
Sep 16, 2026
Contributor
✅ TropiBot report: SYNC TEST REPORT - PASSEDThis CI runs on a real DAppNode using the same RPC calls a user would make to configure a staker setup: execution client, consensus client, web3signer, MEV-boost, and relays. 📦 Package Under Test
📦 Clients Used
🔖 Version Tracking
⏱️ Timing
Total Duration: 3m 34s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Opens up the
beacon-validatorproxy nginx config. It only ever serves the other containers on the internal DAppNode Docker network, so the stock nginx defaults provide no protection — they just cap legitimate traffic.Also hoists the shared proxy directives into the
httpblock. nginx inherits them into both servers/locations, which removes the duplicated 4-lineproxy_set_headerblock from each of the three locations.Why
Problems the old defaults could cause:
client_max_body_size 1m— rejects larger request bodies.large_client_header_buffers 4 8k—/eth/v1/beacon/states/head/validators/<many-pubkeys>URLs overflow the default buffers.proxy_read_timeout 60s— cuts off long reads.proxy_buffering on— spools responses instead of streaming, which is wrong for the SSE endpoint/eth/v1/events.Changes
client_max_body_size0client_body_buffer_size1mclient_header_buffer_size32klarge_client_header_buffers8 64kclient_body_timeout/client_header_timeout/send_timeout1hkeepalive_timeout/keepalive_requests1h/100000proxy_connect_timeout60sproxy_send_timeout/proxy_read_timeout1hproxy_buffering/proxy_request_bufferingoff/eth/v1/eventsSSE open, streams large responsesproxy_max_temp_file_size0proxy_buffer_size/proxy_buffers/proxy_busy_buffers_size32k/8 64k/128kproxy_ignore_client_abortonproxy_http_version+proxy_set_header Connection1.1/""proxy_socket_keepaliveontcp_nodelay/tcp_nopushon/offreset_timedout_connection/lingering_timeon/30sserver_tokensoffworker_processes/worker_connections/multi_acceptauto/8192/onproxy_set_header X-Forwarded-Host/X-Forwarded-Port$host/$server_portTesting
nginx -tagainst the rendered config/eth/v1/eventsstream stays open past 60svalidatorsquery with a long requester URL succeeds