From edf66037cab3c1f6be3b8641bff74b34c959dc8f Mon Sep 17 00:00:00 2001 From: Tyler Gillispie Date: Sun, 23 Aug 2026 09:07:01 -0700 Subject: [PATCH] fix(infra): use /data convention and separate /volume1/docker/spire project root --- infra/setup.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/infra/setup.ts b/infra/setup.ts index acf1b84..801a299 100644 --- a/infra/setup.ts +++ b/infra/setup.ts @@ -22,8 +22,8 @@ const DEFAULT_AUTH_CONFIG: AuthSetupConfig = { ghcrReg: "ghcr.atyg.org", domainName: "auth.system.local", dbPassword: "", - dbDataPath: "/volume1/docker/auth-yes/db", - spireDataPath: "/volume1/docker/auth-yes/spire", + dbDataPath: "/volume1/docker/auth-yes/data", + spireDataPath: "/volume1/docker/spire", appSecret: "", }; @@ -70,10 +70,10 @@ POSTGRES_PORT=5432 POSTGRES_USER=postgres POSTGRES_DB=authdb POSTGRES_PASSWORD=${config.dbPassword} -DB_DATA_PATH=${config.dbDataPath} +DB_DATA_PATH=${config.dbDataPath || "/volume1/docker/auth-yes/data"} # --- SPIRE Configuration --- -SPIRE_DATA_PATH=${config.spireDataPath || "/volume1/docker/auth-yes/spire"} +SPIRE_DATA_PATH=${config.spireDataPath || "/volume1/docker/spire"} # --- Valkey Configuration --- VALKEY_HOST=auth-valkey @@ -618,9 +618,10 @@ if (import.meta.main) { "ghcr.atyg.org", domainName: options.domain, dbPassword, - dbDataPath: options.dbPath, + dbDataPath: options.dbPath || currentConfig.dbDataPath || + "/volume1/docker/auth-yes/data", spireDataPath: options.spirePath || currentConfig.spireDataPath || - "/volume1/docker/auth-yes/spire", + "/volume1/docker/spire", appSecret, }; await generateAuthSetupFiles(newConfig);