halkyon/deploy/sidecars/train.caddy

18 lines
758 B
Text
Raw Normal View History

# 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).
{$TRAIN_DOMAIN} {
encode zstd gzip
# Train's own map where compose.maps.yaml mounts it (train-maps.caddy); none
# without.
import /etc/caddy/train/*.caddy
# 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.
handle {
reverse_proxy train-server:8080
}
}