Skip to content

Route eln.ddomlab.org:5000 to eln_server, keeping /pth on PTH - #3

Merged
rcb1409 merged 1 commit into
mainfrom
eln-server-route
Sep 28, 2026
Merged

rcb1409 merged 1 commit into
mainfrom
eln-server-route

Conversation

@rcb1409

@rcb1409 rcb1409 commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Why

On the old server, eln.ddomlab.org:5000 was 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 the pth container, so everything except /pth/... returns 404. That includes the scanner page and the eln-autofill timer, which has failed every 10 minutes since Sep 22.

eln_server now runs as its own container, eln-server on lab-net (ddomlab/eln_server#3).

Change

eln.ddomlab.org:5000 {
	@pth path /pth /pth/*
	handle @pth { reverse_proxy pth:5000 }        # sensor + MEDUSA
	handle      { reverse_proxy eln-server:5000 } # everything else
	log { output file /var/log/caddy/eln-5000-access.log { ... } }
}

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.
  • Routing: I ran Caddy locally with this exact block in front of stand-in pth and eln-server containers:
Request Went to
GET /pth/api/ndays?days=1, /pth/dashboard, /pth pth
GET /pthology eln-server (a prefix lookalike doesn't match)
GET /, /ping, /add_resource_interface, POST /api/autofill eln-server

Deploy order

Start the eln-server container first, then git pull && sudo docker compose restart caddy in /opt/edge. Until the container exists, non-/pth requests would get 502 instead of today's 404; /pth isn't affected either way.

🤖 Generated with Claude Code

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>
@rcb1409
rcb1409 merged commit 21d73b0 into main Sep 28, 2026
@rcb1409
rcb1409 deleted the eln-server-route branch September 28, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants