[新增] 添加 ACME 和 DNS 账号管理功能,支持证书申请与续期

This commit is contained in:
ryan
2026-05-25 14:02:05 +08:00
parent c6a055d5d3
commit 7afe4e5d78
32 changed files with 1796 additions and 76 deletions
@@ -65,3 +65,36 @@ export const defaultFileImportValues: FileImportFormValues = {
name: '',
remark: '',
};
export const acmeApplySchema = z.object({
name: z.string().trim().min(1, '请输入证书名称').max(255),
primary_domain: z.string().trim().min(1, '请输入主域名'),
other_domains: z.string(),
dns_account_id: z.coerce.number().min(1, '请选择 DNS 账号'),
acme_account_id: z.coerce.number(),
key_algorithm: z.string(),
auto_renew: z.boolean(),
disable_cname: z.boolean().default(false),
skip_dns: z.boolean().default(false),
dns1: z.string().default(''),
dns2: z.string().default(''),
remark: z.string().max(255),
});
export type AcmeApplyFormValues = z.infer<typeof acmeApplySchema>;
export const defaultAcmeApplyValues: AcmeApplyFormValues = {
name: '',
primary_domain: '',
other_domains: '',
dns_account_id: 0,
acme_account_id: 0,
key_algorithm: 'RSA2048',
auto_renew: true,
disable_cname: false,
skip_dns: false,
dns1: '',
dns2: '',
remark: '',
};