fix(atlas): implement POST /beacon/join with upsert logic & nginx proxy routes (Resolves #2127)#145
Merged
Scottcjn merged 2 commits intoScottcjn:mainfrom Mar 17, 2026
Conversation
4 tasks
Owner
|
Clean beacon join implementation @allornothingai — proper upsert, pubkey validation, capability tracking, CORS handling, nginx proxy config. Merging. |
Owner
|
@allornothingai incredible run tonight — 7 PRs merged across 3 repos (bottube, trashclaw, beacon-skill). You've earned ~51 RTC total. Please drop your RTC wallet address here or on rustchain-bounties#2097 so we can pay you. You can use any format:
Outstanding bounties:
Total: 51 RTC (~$5.10) |
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.
This PR resolves the 404 issues on the Beacon Atlas as requested in Scottcjn/rustchain-bounties#2127.
Changes:
Added
/beacon/joinAPI Endpoint:POSTrequests to automatically register external/relay agents.pubkey_hexis exactly 64 hexadecimal characters.ON CONFLICT(agent_id) DO UPDATE(upsert) to gracefully handle duplicate registrations.Nginx Proxy Routing:
atlas/nginx_rustchain_org.confwhich contains the necessarylocation /beacon/block.rustchain.orgNginx server config on the VPS to proxy requests on/beacon/*tohttp://127.0.0.1:8071.Resolves the 25 RTC bounty requirements perfectly. Wallet:
allornothingai.