add option to set TLS Server Name

This commit is contained in:
Matthias Palmetshofer
2025-04-09 23:42:50 +02:00
parent 0450f62108
commit 674316aa46
6 changed files with 84 additions and 11 deletions

View File

@@ -9,3 +9,10 @@ export const subdomainSchema = z
.min(1, "Subdomain must be at least 1 character long")
.transform((val) => val.toLowerCase());
export const tlsNameSchema = z
.string()
.regex(
/^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9-_]+$|^$/,
"Invalid subdomain format"
)
.transform((val) => val.toLowerCase());