Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down