summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-27 06:27:17 +0100
committerRory& <root@rory.gay>2025-12-27 06:27:17 +0100
commit9e6b8e335153373b6c25ccb0986f3fe31014423c (patch)
tree8e4c76f83a150fa8cb9776c3a05e5bb197c70339
parentFix runtime path (diff)
downloadserver-ts-9e6b8e335153373b6c25ccb0986f3fe31014423c.tar.xz
Log some paths
-rw-r--r--src/util/util/Config.ts2
-rw-r--r--src/util/util/Token.ts3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/util/util/Config.ts b/src/util/util/Config.ts

index e31b541f..bc482d3d 100644 --- a/src/util/util/Config.ts +++ b/src/util/util/Config.ts
@@ -40,7 +40,7 @@ export class Config { 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 3c077d9a..b615f5bb 100644 --- a/src/util/util/Token.ts +++ b/src/util/util/Token.ts
@@ -27,6 +27,7 @@ import { FindOptionsRelationByString, FindOptionsSelectByString } from "typeorm" 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 @@ export async function loadOrGenerateKeypair() { 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", });