Skip to content

fix(nginx): add proxy for /headers/ endpoint (closes #5857)#7878

Open
lequangsang01 wants to merge 8 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-5857
Open

fix(nginx): add proxy for /headers/ endpoint (closes #5857)#7878
lequangsang01 wants to merge 8 commits into
Scottcjn:mainfrom
lequangsang01:fix/bounty-5857

Conversation

@lequangsang01

Copy link
Copy Markdown
Contributor

Summary

  • Added missing /headers/ location block to the public nginx config so v2 miners can submit signed block headers during eligible mining slots

Problem

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 to http://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

  • Verified the location block follows the same pattern as other endpoints in nginx.conf
  • nginx.conf syntax is consistent and valid

@github-actions github-actions Bot added documentation Improvements or additions to documentation BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) node Node server related tests Test suite changes size/XL PR: 500+ lines labels Jul 4, 2026
@lequangsang01

Copy link
Copy Markdown
Contributor Author

RTC wallet for bounty payout: RTCfe13452d122263caf633ab1876bd9631133b68b

@jaxint jaxint left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BCOS-L1 Beacon Certified Open Source tier BCOS-L1 (required for non-doc PRs) BCOS-L2 Beacon Certified Open Source tier BCOS-L2 (required for non-doc PRs) documentation Improvements or additions to documentation node Node server related size/XL PR: 500+ lines tests Test suite changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants