DNS Provider configuration

This commit is contained in:
Jamie Curnow
2025-09-22 22:19:18 +10:00
parent 54e036276a
commit 94375bbc5f
13 changed files with 387 additions and 42 deletions

View File

@@ -0,0 +1,9 @@
import * as api from "./base";
import type { DNSProvider } from "./models";
export async function getCertificateDNSProviders(params = {}): Promise<DNSProvider[]> {
return await api.get({
url: "/nginx/certificates/dns-providers",
params,
});
}

View File

@@ -19,6 +19,7 @@ export * from "./getAccessLists";
export * from "./getAuditLog";
export * from "./getAuditLogs";
export * from "./getCertificate";
export * from "./getCertificateDNSProviders";
export * from "./getCertificates";
export * from "./getDeadHost";
export * from "./getDeadHosts";

View File

@@ -193,3 +193,9 @@ export interface Setting {
value: string;
meta: Record<string, any>;
}
export interface DNSProvider {
id: string;
name: string;
credentials: string;
}