mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 14:39:29 +02:00
Add default cert resovler
This commit is contained in:
parent
86043fd5f8
commit
9b01aecf3c
1 changed files with 12 additions and 2 deletions
|
@ -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: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue