mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-14 16:04:56 +02:00
add option to set TLS Server Name
This commit is contained in:
parent
0450f62108
commit
674316aa46
6 changed files with 84 additions and 11 deletions
|
@ -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());
|
Loading…
Add table
Add a link
Reference in a new issue