From be15ada5592bafde14870295b84ab9e14f942000 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 5 May 2026 00:34:17 +0200 Subject: chaski/tracktrain: rewrite to support old endpoints (these are hard-coded on the google side, so we can't have the nice versioning for these) --- chaski/services/tracktrain.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chaski/services/tracktrain.nix b/chaski/services/tracktrain.nix index 77a1ab7..7bc5217 100644 --- a/chaski/services/tracktrain.nix +++ b/chaski/services/tracktrain.nix @@ -33,6 +33,9 @@ in add_header 'Access-Control-Allow-Origin' '*' always; ''; }; + locations."/api/gtfs/".extraConfig = '' + rewrite /gtfs/(.*) /api/v1/gtfs/$1; + ''; locations."/metrics/" = { proxyPass = "http://localhost:2342"; proxyWebsockets = true; -- cgit v1.2.3