1
0
Fork 0

Merge branch v3.2 into master

This commit is contained in:
kevinpollet 2024-12-12 15:47:51 +01:00
commit 4974d9e4d7
No known key found for this signature in database
GPG key ID: 0C9A5DDD1B292453
70 changed files with 5344 additions and 283 deletions

View file

@ -2,6 +2,7 @@ package server
import (
"slices"
"strings"
"github.com/go-acme/lego/v4/challenge/tlsalpn01"
"github.com/rs/zerolog/log"
@ -156,7 +157,11 @@ func applyModel(cfg dynamic.Configuration) dynamic.Configuration {
router := rt.DeepCopy()
if !router.DefaultRule && router.RuleSyntax == "" {
for _, model := range cfg.HTTP.Models {
for modelName, model := range cfg.HTTP.Models {
// models cannot be provided by another provider than the internal one.
if !strings.HasSuffix(modelName, "@internal") {
continue
}
router.RuleSyntax = model.DefaultRuleSyntax
break
}