Serve /api/ on the public short host so callers use piha.lc / beta.piha.li.
CI / test (pull_request) Successful in 4s

Closes #7.
This commit is contained in:
2026-08-30 19:25:03 -05:00
parent e879d4888f
commit 61c9698097
9 changed files with 113 additions and 111 deletions
+3 -3
View File
@@ -18,11 +18,11 @@ CONTACT_URL=https://aimloperations.com/contact
SHORT_DOMAIN=localhost:8005
# Origin printed in minted short_url (phones hit this). Local: this machine.
PUBLIC_SHORT_URL=http://127.0.0.1:8005
# Host values that only serve GET /<code> (no /api/).
# Host values that serve GET /<code> and /api/ (Bearer). Same public hostname.
SHORT_PUBLIC_HOSTS=piha.lc
# Host values that serve /api/ (Bearer required). May include a public DNS name.
# Extra Host values that also serve /api/ (localhost / docker).
SHORT_API_HOSTS=localhost,127.0.0.1,0.0.0.0,web,url-shortener
# Django admin — keep local. Do not add the public API hostname.
# Django admin — keep local. Do not add the public short hostname.
SHORT_ADMIN_HOSTS=localhost,127.0.0.1
# Named, rotatable tokens. This is what keeps /api/ closed on a public hostname.
# Generate: python -c "import secrets; print(secrets.token_urlsafe(32))"