mirror of
https://github.com/certimate-go/certimate.git
synced 2026-10-28 03:22:24 +08:00
feat(provider): allow wildcard domain on deployment to flyio
This commit is contained in:
@@ -15,7 +15,7 @@ type DeployerConfig struct {
|
||||
ApiToken string `json:"apiToken"`
|
||||
// Fly.io 应用名称。
|
||||
AppName string `json:"appName"`
|
||||
// 自定义域名(不支持泛域名)。
|
||||
// 自定义域名(支持泛域名)。
|
||||
Domain string `json:"domain"`
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ const getSchema = ({ i18n = getI18n() }: { i18n?: ReturnType<typeof getI18n> })
|
||||
|
||||
return z.object({
|
||||
regionId: z.string().nonempty(t("workflow_node.deploy.form.ctcccloud_faas_region_id.placeholder")),
|
||||
domain: z.string().refine((v) => isDomain(v), t("workflow_node.deploy.form.ctcccloud_faas_domain.placeholder")),
|
||||
domain: z.string().refine((v) => isDomain(v), t("common.errmsg.domain_invalid")),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ const getSchema = ({ i18n = getI18n() }: { i18n?: ReturnType<typeof getI18n> })
|
||||
|
||||
return z.object({
|
||||
appName: z.string().nonempty(t("workflow_node.deploy.form.flyio_app_name.placeholder")),
|
||||
domain: z.string().refine((v) => isDomain(v), t("workflow_node.deploy.form.flyio_domain.placeholder")),
|
||||
domain: z.string().refine((v) => isDomain(v, { allowWildcard: true }), t("common.errmsg.domain_invalid")),
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user