Prepare Kalendartool for MPM and disable invites
This commit is contained in:
@@ -32,8 +32,7 @@ let cachedConfig: AppConfig | undefined;
|
||||
|
||||
export interface AppConfig {
|
||||
sessionSecret: string;
|
||||
appUrl: string;
|
||||
/** Wenn false, ist die Registrierung nur ueber Invite-Links moeglich. */
|
||||
/** Wenn false, sind neue lokale Registrierungen deaktiviert. */
|
||||
allowOpenRegistration: boolean;
|
||||
/** MultiToolApp-Plattform: Basis-URL (JWKS-Abruf). null = SSO deaktiviert. */
|
||||
hubUrl: string | null;
|
||||
@@ -49,7 +48,6 @@ export function getConfig(): AppConfig {
|
||||
}
|
||||
cachedConfig = {
|
||||
sessionSecret: requireSessionSecret(),
|
||||
appUrl: process.env.APP_URL?.trim() || 'http://localhost:3000',
|
||||
allowOpenRegistration:
|
||||
(process.env.ALLOW_OPEN_REGISTRATION ?? 'true').toLowerCase() === 'true',
|
||||
hubUrl: process.env.HUB_URL?.trim() || null,
|
||||
@@ -57,4 +55,4 @@ export function getConfig(): AppConfig {
|
||||
hubIssuer: process.env.HUB_ISSUER?.trim() || null,
|
||||
};
|
||||
return cachedConfig;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user