Add optional UHST API enrollment and upgrade dependencies#43
Open
dimitrovs wants to merge 1 commit into
Open
Conversation
Relays can now optionally enroll in the hosted UHST API (api.uhst.io): when a server key is provided via UHST_API_KEY, the relay registers its public hostname at startup (or lazily from the first request when UHST_HOSTNAME is not set), adopts the numeric id returned by the API as its host-id prefix, and re-registers every 60s as a heartbeat. Enrollment is entirely optional; self-hosting without enrolling still works. Also upgrades all dependencies to their latest compatible versions (Express 5, mocha 11, sinon 22, nyc 18, newrelic 14, etc.). TypeScript is kept on the latest 5.x and chai on 4.x because their newer majors drop the CommonJS support this package relies on. https://claude.ai/code/session_01CLoX7oEAC34THVcL4wUpp5
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.
Relays can now optionally enroll in the hosted UHST API (api.uhst.io):
when a server key is provided via UHST_API_KEY, the relay registers its
public hostname at startup (or lazily from the first request when
UHST_HOSTNAME is not set), adopts the numeric id returned by the API as
its host-id prefix, and re-registers every 60s as a heartbeat. Enrollment
is entirely optional; self-hosting without enrolling still works.
Also upgrades all dependencies to their latest compatible versions
(Express 5, mocha 11, sinon 22, nyc 18, newrelic 14, etc.). TypeScript is
kept on the latest 5.x and chai on 4.x because their newer majors drop the
CommonJS support this package relies on.
https://claude.ai/code/session_01CLoX7oEAC34THVcL4wUpp5