From 94569c928c60c508b442db2be26cbdf60f282097 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sun, 11 Oct 2026 10:44:22 +0000 Subject: [PATCH] Add shared package constants for VardKey --- startos/utils.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 startos/utils.ts diff --git a/startos/utils.ts b/startos/utils.ts new file mode 100644 index 0000000..93c7553 --- /dev/null +++ b/startos/utils.ts @@ -0,0 +1,16 @@ +// Constants shared by the package's manifest, daemon, interface, and backups. +// The internal port must be the same everywhere: app.py reads PORT, main.ts +// passes it, and interfaces.ts binds it. Changing one alone leaves the +// readiness check permanently red. + +export const imageId = 'main' +export const volumeId = 'main' +export const subcontainerName = 'vardkey-sub' + +// The application listens on this port inside the container. +export const uiPort = 8080 + +// The SQLite database lives on the persistent "main" volume, which main.ts +// mounts at /data. +export const dataMountpoint = '/data' +export const databasePath = '/data/vardkey.sqlite3'