fix(haproxy+unbound): http_to_https per Domain + leere Forward-Zones überspringen
haproxy: http_to_https=false Domains bekommen jetzt eigene use_backend-Regeln im public_http-Frontend statt dem globalen HTTPS-Redirect. Das Feld war bisher in DB + UI vorhanden aber vom Config-Generator komplett ignoriert. unbound: Forward-Zones ohne forward-addr (ForwardTo=nil oder leer) werden jetzt übersprungen. Unbound lehnt solche Blöcke beim Start ab. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -136,6 +136,9 @@ func (g *Generator) buildView(ctx context.Context) (*View, error) {
|
||||
if z.ForwardTo != nil {
|
||||
fwd = splitCSV(*z.ForwardTo)
|
||||
}
|
||||
if len(fwd) == 0 {
|
||||
continue // skip — Unbound rejects a forward-zone without forward-addr
|
||||
}
|
||||
view.ForwardZones = append(view.ForwardZones, forwardZoneView{
|
||||
Name: z.Name, Forwarders: fwd,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user