Replace static deploy-map with dynamic auth registry

updater now fetches app registry from auth /api/auth/internal/registry
and uses internal_host/internal_port for SSH status checks and deploys.
Removes hardcoded host map; platform infra (auth, portal, settings)
kept in INFRA_DEPLOY/INFRA_HEALTH constants.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-01 20:49:39 +00:00
parent b120fbf44e
commit c26f7e18b2
3 changed files with 83 additions and 46 deletions

View file

@ -1,16 +1,3 @@
// Maps Forgejo repo names → target LXC SSH details.
// Keys are the plain repo names Forgejo sends in the webhook (repository.name).
// The updater only pulls + rebuilds existing LXCs — provisioning is done on the
// Proxmox host with proxmox-helpers/add-app.sh, which appends new apps here.
export const deployMap = {
'noticeboard': { host: '10.10.10.112', path: '/opt/noticeboard' },
'kitchen': { host: '10.10.10.110', path: '/opt/kitchen' },
'cashup': { host: '10.10.10.111', path: '/opt/cashup' },
'housekeeping': { host: '10.10.10.114', path: '/opt/housekeeping' },
'forecasting': { host: '10.10.10.113', path: '/opt/forecasting' },
'rates': { host: '10.10.10.115', path: '/opt/rates' },
'portal': { host: '10.10.10.102', path: '/opt/portal' },
'auth': { host: '10.10.10.101', path: '/opt/auth' },
'settings': { host: '10.10.10.116', path: '/opt/settings' },
// 'management' intentionally omitted — can't redeploy the container managing deploys
}
// Deploy targets are now fetched dynamically from the auth registry.
// See src/index.js — INFRA_DEPLOY for platform services, appRegistry for user apps.
// This file is no longer imported.