2026-10-29 16:04:05 +01:00
|
|
|
# Halkyon Train's site (compose.train.yaml, ADR 0030, D46): its API server, and its own
|
|
|
|
|
# map where compose.maps.yaml switches it on (D50). Its web server (8082) takes the
|
|
|
|
|
# register's calls between the instance's services (`/halkyon-base/…`, ADR 0016) on the
|
|
|
|
|
# instance's own network, never through here; through here only the map's style and
|
|
|
|
|
# the tiles' check (train-maps.caddy).
|
2026-10-29 00:05:39 +01:00
|
|
|
{$TRAIN_DOMAIN} {
|
|
|
|
|
encode zstd gzip
|
|
|
|
|
|
2026-10-29 16:04:05 +01:00
|
|
|
# Train's own map where compose.maps.yaml mounts it (train-maps.caddy); none
|
|
|
|
|
# without.
|
|
|
|
|
import /etc/caddy/train/*.caddy
|
|
|
|
|
|
2026-10-29 00:05:39 +01:00
|
|
|
# Serverpod's streaming methods use WebSockets; reverse_proxy upgrades them as-is.
|
|
|
|
|
# The visitor's address comes last in X-Forwarded-For, as for Learn's server.
|
2026-10-29 16:04:05 +01:00
|
|
|
handle {
|
|
|
|
|
reverse_proxy train-server:8080
|
|
|
|
|
}
|
2026-10-29 00:05:39 +01:00
|
|
|
}
|