Tesla OAuth: redirect URI je /t-auth (oprava všude + Caddy rewrite)
All checks were successful
CI and deploy / migration-check (push) Successful in 26s
CI and deploy / deploy (push) Has been skipped

V dev portálu je registrováno https://ems.vojacek.eu/t-auth — docs i setup
skript diktovaly /tesla/callback (mismatch = invalid_auth_code / chybné
návody). Caddy blok nově servíruje callback stránku na /t-auth (rewrite).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dusan Vojacek
2026-06-12 12:45:57 +02:00
parent 315bd0ca46
commit 5a10da57e9
2 changed files with 14 additions and 4 deletions

View File

@@ -54,6 +54,11 @@ ems.vojacek.eu {
}
# Jednorázový OAuth callback (statická stránka zobrazí ?code=)
# POZOR: redirect URI registrovaná v Tesla dev portálu je /t-auth.
handle /t-auth* {
rewrite * /tesla/callback.html
file_server
}
handle /tesla/callback* {
file_server
}