mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
enhance: skip the directives validation check of gonginx
This commit is contained in:
parent
99d6983924
commit
1658e4b5a3
6 changed files with 8 additions and 8 deletions
|
@ -163,7 +163,7 @@ func ParseTemplate(path, name string, bindData map[string]Variable) (c ConfigDet
|
|||
|
||||
content = buf.String()
|
||||
|
||||
p := parser.NewStringParser(content)
|
||||
p := parser.NewStringParser(content, parser.WithSkipValidDirectivesErr())
|
||||
config, err := p.Parse()
|
||||
if err != nil {
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue