diff --git a/Caddyfile b/Caddyfile index 5d1c303..36fa060 100644 --- a/Caddyfile +++ b/Caddyfile @@ -17,6 +17,21 @@ eln.ddomlab.org { } } +# The old lab-server address. The PTH sensor and MEDUSA still post to /pth/... here; +# everything else is eln_server (scanner page, labels, autofill API). eln.ddomlab.org:5000 { - reverse_proxy pth:5000 + @pth path /pth /pth/* + handle @pth { + reverse_proxy pth:5000 + } + handle { + reverse_proxy eln-server:5000 + } + log { + output file /var/log/caddy/eln-5000-access.log { + roll_size 10MiB + roll_keep 10 + roll_keep_for 2160h + } + } } diff --git a/README.md b/README.md index 8a70a61..758fa51 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ HTTPS certificates are obtained and renewed automatically, so no certbot on the |---|---| | `pth.ddomlab.org` | `pth` container (PTH sensor API + dashboard) | | `eln.ddomlab.org` | eLabFTW *(added at cutover)* | -| `eln.ddomlab.org:5000` | `pth` - compatibility for the sensor and MEDUSA *(added at cutover, removed once they are repointed)* | +| `eln.ddomlab.org:5000` | `/pth/...` → `pth` (compatibility for the sensor and MEDUSA); everything else → `eln-server` (eln_server: scanner page, labels, autofill API) | Apps publish no ports of their own; only this project is exposed.