Prepare Kalendartool for MPM and disable invites

This commit is contained in:
Kühn
2026-10-08 15:06:22 +02:00
parent bc49c3074e
commit 556202575e
50 changed files with 905 additions and 836 deletions

View File

@@ -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;
}
}