From 443097554f620e9d6597893ee3d1541e5b005612 Mon Sep 17 00:00:00 2001 From: Milo Schwartz Date: Wed, 8 Jan 2025 23:13:35 -0500 Subject: [PATCH] allow hyphens in base_domain regex --- server/lib/config.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/server/lib/config.ts b/server/lib/config.ts index 35540ba7..6642e7d3 100644 --- a/server/lib/config.ts +++ b/server/lib/config.ts @@ -3,7 +3,11 @@ import yaml from "js-yaml"; import path from "path"; import { z } from "zod"; import { fromError } from "zod-validation-error"; -import { __DIRNAME, APP_PATH, configFilePath1, configFilePath2 } from "@server/lib/consts"; +import { + __DIRNAME, + configFilePath1, + configFilePath2 +} from "@server/lib/consts"; import { loadAppVersion } from "@server/lib/loadAppVersion"; import { passwordSchema } from "@server/auth/passwordSchema"; @@ -11,9 +15,9 @@ const portSchema = z.number().positive().gt(0).lte(65535); const hostnameSchema = z .string() .regex( - /^(?!-)[a-zA-Z0-9-]{1,63}(?