feat(train): the instance's own map tiles, drawn by Train's style (ADR 0030, D50)
Protomaps' basemap cut for Europe and served by pmtiles beside Train's server (compose.maps.yaml), drawn by Train's own style, light and dark, which the server serves. Only people signed in get tiles: map.source hands a key that Caddy has the server check before each tile; nothing logs a tile. Also fixes .dockerignore, which left apps/train/ out of the build context, so Train's server's and BRouter's images couldn't have been built. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
a848b71bd4
commit
190c3872f4
1 changed files with 3726 additions and 97 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import 'package:halkyon_base_server/base.dart';
|
||||
import 'package:halkyon_train_server/src/generated/serverpod.dart';
|
||||
import 'package:halkyon_train_server/src/map/instance_map.dart';
|
||||
import 'package:halkyon_train_server/src/pruning.dart';
|
||||
import 'package:halkyon_train_server/src/train_base.dart';
|
||||
import 'package:serverpod_auth_idp_server/core.dart';
|
||||
|
|
@ -26,6 +27,10 @@ Future<void> run(List<String> args) async {
|
|||
// The calls between the instance's services, on the web server
|
||||
// (ADR 0016); Caddy never forwards them.
|
||||
addInstanceRoutes(pod);
|
||||
// The instance's own tiles' style and their check (ADR 0030, D50), which
|
||||
// Caddy asks before each tile; no start where they couldn't be had.
|
||||
checkMapKeySecret(pod);
|
||||
addMapRoutes(pod);
|
||||
|
||||
await pod.start();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue