fix: correct traefik route label escaping

Path-based route rules for traefik kept a stray backslash before each backtick, so traefik rejected the router and requests fell through to the web process. The nginx template tests now also supply the route variables and cover route rendering.
This commit is contained in:
Jose Diaz-Gonzalez committed 2026-11-05 01:36:10 -05:00
1 parent fb7d0f57bf
commit ffcc60709a
3 files changed
+55 -9

No files matched your search

+6
View File
@@ -39,6 +39,12 @@ teardown() {
echo "status: $status"
assert_success
run /bin/bash -c "docker inspect $TEST_APP.api.1 --format '{{ index .Config.Labels \"traefik.http.routers.$TEST_APP-api-api-v0.rule\" }}'"
echo "output: $output"
echo "status: $status"
assert_success
assert_output "(Host(\`$TEST_APP.$DOKKU_DOMAIN\`)) && PathPrefix(\`/api/v0\`)"
# Give the daemon a moment to read the new labels.
sleep 5