mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-28 15:56:39 +00:00
Fix type
This commit is contained in:
@@ -10,7 +10,7 @@ export async function getValidCertificatesForDomainsHybrid(domains: Set<string>)
|
|||||||
Array<{
|
Array<{
|
||||||
id: number;
|
id: number;
|
||||||
domain: string;
|
domain: string;
|
||||||
wildcard: boolean;
|
wildcard: boolean | null;
|
||||||
certFile: string | null;
|
certFile: string | null;
|
||||||
keyFile: string | null;
|
keyFile: string | null;
|
||||||
expiresAt: Date | null;
|
expiresAt: Date | null;
|
||||||
@@ -69,7 +69,7 @@ export async function getValidCertificatesForDomains(domains: Set<string>): Prom
|
|||||||
Array<{
|
Array<{
|
||||||
id: number;
|
id: number;
|
||||||
domain: string;
|
domain: string;
|
||||||
wildcard: boolean;
|
wildcard: boolean | null;
|
||||||
certFile: string | null;
|
certFile: string | null;
|
||||||
keyFile: string | null;
|
keyFile: string | null;
|
||||||
expiresAt: Date | null;
|
expiresAt: Date | null;
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export class TraefikConfigManager {
|
|||||||
exists: boolean;
|
exists: boolean;
|
||||||
lastModified: Date | null;
|
lastModified: Date | null;
|
||||||
expiresAt: Date | null;
|
expiresAt: Date | null;
|
||||||
wildcard: boolean;
|
wildcard: boolean | null;
|
||||||
}
|
}
|
||||||
>();
|
>();
|
||||||
|
|
||||||
@@ -311,7 +311,7 @@ export class TraefikConfigManager {
|
|||||||
let validCertificates: Array<{
|
let validCertificates: Array<{
|
||||||
id: number;
|
id: number;
|
||||||
domain: string;
|
domain: string;
|
||||||
wildcard: boolean;
|
wildcard: boolean | null;
|
||||||
certFile: string | null;
|
certFile: string | null;
|
||||||
keyFile: string | null;
|
keyFile: string | null;
|
||||||
expiresAt: Date | null;
|
expiresAt: Date | null;
|
||||||
@@ -683,7 +683,7 @@ export class TraefikConfigManager {
|
|||||||
validCertificates: Array<{
|
validCertificates: Array<{
|
||||||
id: number;
|
id: number;
|
||||||
domain: string;
|
domain: string;
|
||||||
wildcard: boolean;
|
wildcard: boolean | null;
|
||||||
certFile: string | null;
|
certFile: string | null;
|
||||||
keyFile: string | null;
|
keyFile: string | null;
|
||||||
expiresAt: Date | null;
|
expiresAt: Date | null;
|
||||||
@@ -1040,7 +1040,7 @@ export class TraefikConfigManager {
|
|||||||
/**
|
/**
|
||||||
* Check if a domain is covered by existing wildcard certificates
|
* Check if a domain is covered by existing wildcard certificates
|
||||||
*/
|
*/
|
||||||
export function isDomainCoveredByWildcard(domain: string, lastLocalCertificateState: Map<string, { exists: boolean; wildcard: boolean }>): boolean {
|
export function isDomainCoveredByWildcard(domain: string, lastLocalCertificateState: Map<string, { exists: boolean; wildcard: boolean | null }>): boolean {
|
||||||
for (const [certDomain, state] of lastLocalCertificateState) {
|
for (const [certDomain, state] of lastLocalCertificateState) {
|
||||||
if (state.exists && state.wildcard) {
|
if (state.exists && state.wildcard) {
|
||||||
// If stored as example.com but is wildcard, check subdomains
|
// If stored as example.com but is wildcard, check subdomains
|
||||||
|
|||||||
Reference in New Issue
Block a user