LAN admin on 10.0.0.128 plus quick campaign mint form #11

Closed
opened 2026-09-16 03:21:01 -07:00 by westfarn · 0 comments
Owner

/admin/ is 404 on the public short host on purpose. Local Django admin should be reachable from another machine on the LAN at http://10.0.0.128:8005/admin/.

Do:

  • Add 10.0.0.128 to SHORT_ADMIN_HOSTS (and DJANGO_ALLOWED_HOSTS so Django accepts the Host header)
  • Pass SHORT_ADMIN_HOSTS into the compose web container (it is currently omitted, so .env never reaches Django)
  • Bind local compose so the port is reachable on the LAN, not only 127.0.0.1
  • Do not add piha.li / piha.lc to admin hosts

Also: admin should have an easy short-URL creator:

  • Fields: domain, campaign, source, metric
  • Save mints a short link to https://{domain}/ with utm_campaign, utm_source, utm_medium (metric)
  • Show the resulting short URL with a copy button

Staff login still required. Public /admin/ stays 404.

`/admin/` is 404 on the public short host on purpose. Local Django admin should be reachable from another machine on the LAN at `http://10.0.0.128:8005/admin/`. **Do:** - Add `10.0.0.128` to `SHORT_ADMIN_HOSTS` (and `DJANGO_ALLOWED_HOSTS` so Django accepts the Host header) - Pass `SHORT_ADMIN_HOSTS` into the compose `web` container (it is currently omitted, so `.env` never reaches Django) - Bind local compose so the port is reachable on the LAN, not only `127.0.0.1` - Do **not** add `piha.li` / `piha.lc` to admin hosts **Also:** admin should have an easy short-URL creator: - Fields: domain, campaign, source, metric - Save mints a short link to `https://{domain}/` with `utm_campaign`, `utm_source`, `utm_medium` (metric) - Show the resulting short URL with a copy button Staff login still required. Public `/admin/` stays 404.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/url_shortening_service#11