Register url_shortening_service for django deploy (closes #22) #23

Merged
westfarn merged 1 commits from issue-22-register-url-shortening-service into master 2026-08-30 04:51:31 -07:00
Owner

Summary

  • Closes #22.
  • Register url_shortening_service in app_catalog (type: django, repo ai_ml_operations/url_shortening_service, default branch master) and host_apps on adama, roslin, starbuck, apollo, and ai-server-4080 (prod 8005, beta 8015).
  • Document NPM (short host vs API host, same container), Postgres DBs (url_shortener / url_shortener_beta), and extra env keys. No compose worker profile.
  • List url_shortening_service in scripts/deploy.sh --app help.

Out of scope (manual ops)

  • Create Postgres DBs url_shortener / url_shortener_beta + grant westfarn on 10.0.0.230
  • Control-node secrets under ~/Documents/secrets/url_shortening_service/
  • NPM proxy hosts (Ryan): short host / + /[a-z0-9]{4,8} (404 /api/, /admin/, /debug/); API host /api/ only (404 /admin/)
  • Deploy smoke — url_shortening_service master is still a stub (README.md only)

Test plan

  • Inventory YAML: url_shortening_service in app_catalog; every host host_apps has prod 8005 / beta 8015
  • After app compose + secrets + DBs exist: ./scripts/deploy.sh --app url_shortening_service --env beta --ref master
  • Same for prod
  • GET /healthz/{"status":"ok"} on both ports
  • Short host GET / landing page; POST /api/links/ without Bearer → 401; public /admin/ → 404
## Summary - Closes [#22](https://git.aimloperations.com/ai_ml_operations/server-infra/issues/22). - Register `url_shortening_service` in `app_catalog` (`type: django`, repo `ai_ml_operations/url_shortening_service`, default branch `master`) and `host_apps` on **adama**, **roslin**, **starbuck**, **apollo**, and **ai-server-4080** (prod **8005**, beta **8015**). - Document NPM (short host vs API host, same container), Postgres DBs (`url_shortener` / `url_shortener_beta`), and extra env keys. No compose worker profile. - List `url_shortening_service` in `scripts/deploy.sh` `--app` help. ## Out of scope (manual ops) - Create Postgres DBs `url_shortener` / `url_shortener_beta` + grant `westfarn` on `10.0.0.230` - Control-node secrets under `~/Documents/secrets/url_shortening_service/` - NPM proxy hosts (Ryan): short host `/` + `/[a-z0-9]{4,8}` (404 `/api/`, `/admin/`, `/debug/`); API host `/api/` only (404 `/admin/`) - Deploy smoke — [url_shortening_service](https://git.aimloperations.com/ai_ml_operations/url_shortening_service) `master` is still a stub (`README.md` only) ## Test plan - [x] Inventory YAML: `url_shortening_service` in `app_catalog`; every host `host_apps` has prod **8005** / beta **8015** - [ ] After app compose + secrets + DBs exist: `./scripts/deploy.sh --app url_shortening_service --env beta --ref master` - [ ] Same for prod - [ ] `GET /healthz/` → `{"status":"ok"}` on both ports - [ ] Short host `GET /` landing page; `POST /api/links/` without Bearer → 401; public `/admin/` → 404
westfarn added 1 commit 2026-08-30 04:47:01 -07:00
Register url_shortening_service for django deploy (closes #22).
Sync runner checkout / sync (pull_request) Successful in 6s
d851469e2d
Wire prod/beta into the catalog and host ports so NPM can balance the short and API hosts on 8005/8015.
westfarn merged commit 9208e63491 into master 2026-08-30 04:51:31 -07:00
westfarn deleted branch issue-22-register-url-shortening-service 2026-08-30 04:51:31 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/server-infra#23