fix(infra): use /data convention and separate /volume1/docker/spire project root

This commit is contained in:
Tyler Gillispie 2026-08-23 09:07:01 -07:00
parent daaa4389c1
commit edf66037ca

View File

@ -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);