feat: add sessionSecretFile and oauthClientSecretFile for JSON config

This commit is contained in:
Pascal Dietrich
2026-05-31 00:14:38 +02:00
committed by Linus Rath
parent 7ee329e046
commit b508551d02
2 changed files with 12 additions and 1 deletions
+6 -1
View File
@@ -23,7 +23,12 @@ export function getSessionSecret(): string {
if (fromFile) return fromFile;
const fromAdmin = configManager.get<string>('sessionSecret', '');
return fromAdmin || '';
if (fromAdmin) return fromAdmin;
const fromAdminFile = readFileEnv(
configManager.get<string>('sessionSecretFile', ''),
);
return fromAdminFile || "";
}
export function hasSessionSecret(): boolean {