Enable access log for default backend
disable log on default_server
This commit is contained in:
parent
c50fe1bc68
commit
8b3702c829
5 changed files with 119 additions and 71 deletions
|
|
@ -18,6 +18,7 @@ package controller
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"k8s.io/ingress-nginx/internal/ingress/annotations/log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
@ -928,6 +929,10 @@ func (n *NGINXController) createServers(data []*ingress.Ingress,
|
|||
Backend: du.Name,
|
||||
Proxy: ngxProxy,
|
||||
Service: du.Service,
|
||||
Logs: log.Config{
|
||||
Access: n.store.GetBackendConfiguration().EnableAccessLogForDefaultBackend,
|
||||
Rewrite: false,
|
||||
},
|
||||
},
|
||||
}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue