diff --git a/src/util/util/Config.ts b/src/util/util/Config.ts index e31b541..bc482d3 100644 --- a/src/util/util/Config.ts +++ b/src/util/util/Config.ts @@ -40,7 +40,7 @@ pairs = await validateConfig(); config = pairsToConfig(pairs); } else { - console.log(`[Config] Using CONFIG_PATH rather than database`); + console.log(`[Config] Using CONFIG_PATH rather than database:`, process.env.CONFIG_PATH); if (existsSync(process.env.CONFIG_PATH)) { const file = JSON.parse((await fs.readFile(process.env.CONFIG_PATH)).toString()); config = file; diff --git a/src/util/util/Token.ts b/src/util/util/Token.ts index 3c077d9..b615f5b 100644 --- a/src/util/util/Token.ts +++ b/src/util/util/Token.ts @@ -27,6 +27,7 @@ import { randomUpperString } from "@spacebar/api"; import { TimeSpan } from "./Timespan"; import { HTTPError } from "lambert-server"; +import path from "path"; /// Change history: /// 1 - Initial version with HS256 @@ -226,7 +227,7 @@ privateKey = crypto.createPrivateKey(loadedPrivateKey); publicKey = crypto.createPublicKey(loadedPublicKey); } else { - console.log("[JWT] Generating new keypair"); + console.log("[JWT] Generating new keypair:", path.resolve("jwt.key")); const res = crypto.generateKeyPairSync("ec", { namedCurve: "secp521r1", });