Repository navigation
Route eln.ddomlab.org:5000 to eln_server, keeping /pth on PTH - #3
Merged
Merged
Conversation
The old server answered this address with eln_server, which also mounted the PTH routes. Since the cutover every request here went to the pth container, so the scanner page and the autofill timer got 404s. Send /pth and /pth/* to pth (the sensor and MEDUSA post there) and everything else to the eln-server container, and log this address like the main site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
On the old server,
eln.ddomlab.org:5000was eln_server, the scanner page, label printing and the autofill/peroxide API, which also mounted the PTH routes under/pth. Since the cutover this block sends everything to thepthcontainer, so everything except/pth/...returns 404. That includes the scanner page and theeln-autofilltimer, which has failed every 10 minutes since Sep 22.eln_server now runs as its own container,
eln-serveronlab-net(ddomlab/eln_server#3).Change
This address also gets a request log, with the same rotation as the main site (
/var/log/caddy/eln-5000-access.log), so scanner-page use can be checked later.Tested
caddy adapt: the syntax is valid.pthandeln-servercontainers:GET /pth/api/ndays?days=1,/pth/dashboard,/pthpthGET /pthologyeln-server(a prefix lookalike doesn't match)GET /,/ping,/add_resource_interface,POST /api/autofilleln-serverDeploy order
Start the
eln-servercontainer first, thengit pull && sudo docker compose restart caddyin/opt/edge. Until the container exists, non-/pthrequests would get 502 instead of today's 404;/pthisn't affected either way.🤖 Generated with Claude Code