14 lines
487 B
Text
14 lines
487 B
Text
|
|
# Halkyon Train's own map (compose.maps.yaml, ADR 0030, D50), inside Train's site
|
||
|
|
# (train.caddy imports it): Train's style, public, from its web server; and the tiles,
|
||
|
|
# each passed on only once Train's server takes the key it came with
|
||
|
|
# (`Authorization: Bearer`, /map/tile-key: 204 or 401). Caddy logs no request.
|
||
|
|
handle /map/style/* {
|
||
|
|
reverse_proxy train-server:8082
|
||
|
|
}
|
||
|
|
|
||
|
|
handle_path /tiles/* {
|
||
|
|
forward_auth train-server:8082 {
|
||
|
|
uri /map/tile-key
|
||
|
|
}
|
||
|
|
reverse_proxy map-tiles:8080
|
||
|
|
}
|