Add default cert resovler

This commit is contained in:
Owen 2025-07-17 22:37:33 -07:00
parent 86043fd5f8
commit 9b01aecf3c
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD

View file

@ -214,11 +214,21 @@ export async function traefikConfigProvider(
const configDomain = config.getDomain(resource.domainId);
let certResolver, preferWildcardCert;
if (!configDomain) {
certResolver = config.getRawConfig().traefik.cert_resolver;
preferWildcardCert =
config.getRawConfig().traefik.prefer_wildcard_cert;
} else {
certResolver = configDomain.cert_resolver;
preferWildcardCert = configDomain.prefer_wildcard_cert;
}
let tls = {};
if (configDomain) {
tls = {
certResolver: configDomain.cert_resolver,
...(configDomain.prefer_wildcard_cert
certResolver: certResolver,
...(preferWildcardCert
? {
domains: [
{