mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-27 07:16:40 +00:00
fix create domain
This commit is contained in:
@@ -82,7 +82,7 @@ export async function createOrgDomain(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else if (build == "enterprise" || build == "saas") {
|
} else if (build == "saas") {
|
||||||
if (type !== "ns" && type !== "cname") {
|
if (type !== "ns" && type !== "cname") {
|
||||||
return next(
|
return next(
|
||||||
createHttpError(
|
createHttpError(
|
||||||
@@ -92,6 +92,7 @@ export async function createOrgDomain(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// allow wildacard, cname, and ns in enterprise
|
||||||
|
|
||||||
// Validate organization exists
|
// Validate organization exists
|
||||||
if (!isValidDomain(baseDomain)) {
|
if (!isValidDomain(baseDomain)) {
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export function PathMatchModal({
|
|||||||
Set up how incoming requests should be matched based on their path.
|
Set up how incoming requests should be matched based on their path.
|
||||||
</CredenzaDescription>
|
</CredenzaDescription>
|
||||||
</CredenzaHeader>
|
</CredenzaHeader>
|
||||||
<div className="grid gap-4 py-4">
|
<div className="grid gap-4">
|
||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
<Label htmlFor="match-type">Match Type</Label>
|
<Label htmlFor="match-type">Match Type</Label>
|
||||||
<Select value={matchType} onValueChange={setMatchType}>
|
<Select value={matchType} onValueChange={setMatchType}>
|
||||||
@@ -181,7 +181,7 @@ export function PathRewriteModal({
|
|||||||
Transform the matched path before forwarding to the target.
|
Transform the matched path before forwarding to the target.
|
||||||
</CredenzaDescription>
|
</CredenzaDescription>
|
||||||
</CredenzaHeader>
|
</CredenzaHeader>
|
||||||
<div className="grid gap-4 py-4">
|
<div className="grid gap-4">
|
||||||
<div className="grid gap-2">
|
<div className="grid gap-2">
|
||||||
<Label htmlFor="rewrite-type">Rewrite Type</Label>
|
<Label htmlFor="rewrite-type">Rewrite Type</Label>
|
||||||
<Select value={rewriteType} onValueChange={setRewriteType}>
|
<Select value={rewriteType} onValueChange={setRewriteType}>
|
||||||
|
|||||||
Reference in New Issue
Block a user