aido-onyx/branding/branding.config.json
NaeemDosh bbfbad2ca7 Fix upstream build: swap Docker Hardened Images (dhi.io) for public node bases
Onyx's web Dockerfile now bases on Docker Hardened Images (dhi.io/node:24-debian13*),
which require a paid DHI subscription + `docker login dhi.io` — so `make build` fails
with a registry-login error for anyone without DHI access.

The apply overlay now rewrites those two FROM lines to the equivalent PUBLIC Docker
Hub node images (24-trixie / 24-trixie-slim, Debian 13 / glibc to match the DHI variant
the Dockerfile targets) and sets the runtime to the non-root `node` user, matching
upstream's posture — no docker login needed.

- branding.config.json: new build.baseImageReplacements map (config-driven)
- apply-branding.mjs: step 1b swaps DHI FROM lines (digest-stripped) + adds USER node;
  idempotent, no-op with a warning if the DHI bases are absent (safe across upstream changes)
- README: upgrade note #3 documenting the swap

Verified end-to-end: full web image builds on the public bases (no login), serves 200,
and runs correctly as the non-root node user.
2026-07-04 02:40:05 +05:00

84 lines
4.7 KiB
JSON

{
"$comment": "SINGLE SOURCE OF TRUTH for the Livtec / AIDO white-label of Onyx Community Edition. Edit values here, then run `node branding/apply-branding.mjs` and rebuild the web image. Values mirror the AIDO/Lobe white-label so the two products stay visually identical.",
"brand": {
"name": "AIDO",
"legalName": "Livtec AG",
"poweredByHtml": "Powered by Livtec",
"ogDescription": "Ein KI-Assistent, der genau auf Ihre Unternehmensdokumente abgestimmt ist."
},
"upstream": {
"$comment": "Pin the exact Onyx commit/tag this overlay was authored against. Bump together with branding.apply when upgrading. Used only for documentation/verification.",
"repo": "https://github.com/onyx-dot-app/onyx",
"pinnedCommit": "main",
"webSrcRoot": "web"
},
"build": {
"$comment": "As of 2026-07, Onyx's web Dockerfile bases on Docker Hardened Images (dhi.io/node:*), a paid Docker offering that requires a DHI subscription + `docker login dhi.io` — so `make build` fails with a registry login error for anyone without DHI access. The apply step rewrites those FROM lines to the equivalent PUBLIC Docker Hub node images (Debian 13 / glibc, matching the DHI variant the Dockerfile targets), so the branded image builds with no login. Keys = the dhi.io image ref (the trailing @sha256 digest, if any, is stripped automatically); values = the public replacement. No-op (with a warning) if the DHI lines are absent, so this stays safe across upstream changes.",
"baseImageReplacements": {
"dhi.io/node:24-debian13-dev": "docker.io/library/node:24-trixie",
"dhi.io/node:24-debian13": "docker.io/library/node:24-trixie-slim"
}
},
"assets": {
"$comment": "Remote source URLs are fetched at apply time into onyx/web/public/branding/. If a fetch fails (e.g. offline), the apply script keeps any existing committed file in branding/assets/ as a fallback.",
"mark": {
"url": "https://crm.livtec.cloud/hubfs/Logos/AIDO/favicon_aido_48x48_rand.png",
"dest": "branding/mark.png",
"note": "Square symbol used as the in-app logo icon (sidebar, loaders, compact placements)."
},
"wordmark": {
"url": "https://crm.livtec.cloud/hubfs/Logos/AIDO/aido_465x170.png",
"dest": "branding/wordmark.png",
"note": "Full lockup (symbol + AIDO text) used wherever the typed logo appears (auth screen, headers)."
},
"favicon": {
"url": "https://crm.livtec.cloud/hubfs/Logos/AIDO/favicon_aido.png",
"dest": "branding/favicon.png",
"note": "Browser tab icon. Replaces the default /onyx.ico reference."
}
},
"links": {
"$comment": "Maps Onyx's hardcoded link constants to Livtec destinations. DOCS_BASE_URL drives most in-app documentation links; deep sub-paths (e.g. /admins) consolidate to this root.",
"docsBaseUrl": "https://portal.livtec.cloud",
"website": "https://livtec.cloud/",
"help": "https://portal.livtec.cloud/",
"privacy": "https://livtec.cloud/terms/",
"terms": "https://livtec.cloud/terms/",
"blog": "https://livtec.cloud/blog/",
"changelog": "https://livtec.cloud/"
},
"emails": {
"business": "hello@livtec.cloud",
"support": "support@livtec.cloud"
},
"rename": {
"$comment": "Drives the user-visible string codemod. `word` replaces standalone, capitalised whole-word matches of \\bOnyx\\b only — camelCase identifiers (OnyxDocument, SvgOnyxLogo), lowercase package refs (@onyx, onyx.app, onyx.ico) are never touched. `literals` are exact-string replacements applied before the word pass for multi-word brand terms.",
"word": { "Onyx": "AIDO" },
"literals": {
"Open Source AI Platform": "Powered by Livtec",
"https://docs.onyx.app": "https://portal.livtec.cloud",
"https://www.onyx.app": "https://livtec.cloud",
"https://discord.gg/4NA5SbzrWb": "https://livtec.cloud/",
"support@onyx.app": "support@livtec.cloud",
"@onyx.app administrators": "@livtec.cloud administrators"
}
},
"notifications": {
"$comment": "The notification bell content is generated by the backend (official onyx-backend image we do NOT rebuild), so it is rebranded at render time in the web image. `sanitize` rewrites any 'Onyx' in a notification's title/description to the brand name. `suppressTypes` hides whole notification categories that are upstream/EE product messaging irrelevant to a white-labeled CE deployment (e.g. the permissions-migration announcement and license/trial warnings). Operational notifications (reindex, approvals, connector errors, scheduled tasks) are kept. Empty the list to show everything (still sanitized).",
"sanitize": true,
"suppressTypes": [
"feature_announcement",
"release_notes",
"license_expiry_warning",
"two_day_trial_ending"
]
}
}