feat: add sessionSecretFile and oauthClientSecretFile for JSON config
This commit is contained in:
committed by
Linus Rath
parent
7ee329e046
commit
b508551d02
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user