fix(infra): use /data convention and separate /volume1/docker/spire project root
This commit is contained in:
parent
daaa4389c1
commit
edf66037ca
@ -22,8 +22,8 @@ const DEFAULT_AUTH_CONFIG: AuthSetupConfig = {
|
|||||||
ghcrReg: "ghcr.atyg.org",
|
ghcrReg: "ghcr.atyg.org",
|
||||||
domainName: "auth.system.local",
|
domainName: "auth.system.local",
|
||||||
dbPassword: "",
|
dbPassword: "",
|
||||||
dbDataPath: "/volume1/docker/auth-yes/db",
|
dbDataPath: "/volume1/docker/auth-yes/data",
|
||||||
spireDataPath: "/volume1/docker/auth-yes/spire",
|
spireDataPath: "/volume1/docker/spire",
|
||||||
appSecret: "",
|
appSecret: "",
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -70,10 +70,10 @@ POSTGRES_PORT=5432
|
|||||||
POSTGRES_USER=postgres
|
POSTGRES_USER=postgres
|
||||||
POSTGRES_DB=authdb
|
POSTGRES_DB=authdb
|
||||||
POSTGRES_PASSWORD=${config.dbPassword}
|
POSTGRES_PASSWORD=${config.dbPassword}
|
||||||
DB_DATA_PATH=${config.dbDataPath}
|
DB_DATA_PATH=${config.dbDataPath || "/volume1/docker/auth-yes/data"}
|
||||||
|
|
||||||
# --- SPIRE Configuration ---
|
# --- SPIRE Configuration ---
|
||||||
SPIRE_DATA_PATH=${config.spireDataPath || "/volume1/docker/auth-yes/spire"}
|
SPIRE_DATA_PATH=${config.spireDataPath || "/volume1/docker/spire"}
|
||||||
|
|
||||||
# --- Valkey Configuration ---
|
# --- Valkey Configuration ---
|
||||||
VALKEY_HOST=auth-valkey
|
VALKEY_HOST=auth-valkey
|
||||||
@ -618,9 +618,10 @@ if (import.meta.main) {
|
|||||||
"ghcr.atyg.org",
|
"ghcr.atyg.org",
|
||||||
domainName: options.domain,
|
domainName: options.domain,
|
||||||
dbPassword,
|
dbPassword,
|
||||||
dbDataPath: options.dbPath,
|
dbDataPath: options.dbPath || currentConfig.dbDataPath ||
|
||||||
|
"/volume1/docker/auth-yes/data",
|
||||||
spireDataPath: options.spirePath || currentConfig.spireDataPath ||
|
spireDataPath: options.spirePath || currentConfig.spireDataPath ||
|
||||||
"/volume1/docker/auth-yes/spire",
|
"/volume1/docker/spire",
|
||||||
appSecret,
|
appSecret,
|
||||||
};
|
};
|
||||||
await generateAuthSetupFiles(newConfig);
|
await generateAuthSetupFiles(newConfig);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user