feat: zentrale selfhost-dienste bereitstellen
This commit is contained in:
@@ -53,6 +53,7 @@ export let secrets = {
|
||||
PUSH_SERVER_URL?: string
|
||||
PUSH_SERVER_INSTANCE_ID?: string
|
||||
PUSH_SERVER_SECRET?: string
|
||||
FEDEO_CENTRAL_SERVICES_ENABLED?: boolean
|
||||
}
|
||||
|
||||
const secretKeys = [
|
||||
@@ -100,10 +101,11 @@ const secretKeys = [
|
||||
"PUSH_SERVER_URL",
|
||||
"PUSH_SERVER_INSTANCE_ID",
|
||||
"PUSH_SERVER_SECRET",
|
||||
"FEDEO_CENTRAL_SERVICES_ENABLED",
|
||||
] as const
|
||||
|
||||
const numberKeys = new Set(["PORT", "MAILER_SMTP_PORT", "DOKUBOX_IMAP_PORT"])
|
||||
const booleanKeys = new Set(["DOKUBOX_IMAP_SECURE"])
|
||||
const booleanKeys = new Set(["DOKUBOX_IMAP_SECURE", "FEDEO_CENTRAL_SERVICES_ENABLED"])
|
||||
|
||||
function normalizeEnvValue(key: string, value: string) {
|
||||
if (numberKeys.has(key)) return Number(value)
|
||||
|
||||
Reference in New Issue
Block a user