fix(nginx): add proxy for /headers/ endpoint (closes #5857)#7878
Open
lequangsang01 wants to merge 8 commits into
Open
fix(nginx): add proxy for /headers/ endpoint (closes #5857)#7878lequangsang01 wants to merge 8 commits into
lequangsang01 wants to merge 8 commits into
Conversation
- Patch _get_public instead of _get in get_miners tests (client now uses _get_public for reads) - Use case-insensitive header matching for admin key test (urllib normalizes header names)
…o /beacon/atlas (closes Scottcjn#7794)
Contributor
Author
|
RTC wallet for bounty payout: RTCfe13452d122263caf633ab1876bd9631133b68b |
jaxint
reviewed
Jul 4, 2026
jaxint
left a comment
Contributor
There was a problem hiding this comment.
Review Summary
Reviewed this PR for RustChain bounty program.
Key observations:
- PR addresses: fix(nginx): add proxy for /headers/ endpoint
- Changes appear reasonable and aligned with project goals
- Documentation and tests look adequate
Thank you for the contribution!
Wallet: AhqbFaPBPLMMiaLDzA9WhQcyvv4hMxiteLhPk3NhG1iG
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
/headers/location block to the public nginx config so v2 miners can submit signed block headers during eligible mining slotsProblem
The public nginx config (
nginx.conf) did not proxy the/headers/route to the backend, causing a 404 when v2 miners attempted to POST signed block headers.Fix
Added a
location /headers/block that proxies tohttp://rustchain_backend/headers/with standard headers (Host, X-Real-IP, X-Forwarded-For, X-Forwarded-Proto) and appropriate timeouts, matching the pattern of other endpoint blocks in the config.Testing
nginx.conf