Skip to content

Commit

Permalink
fix: fail to save locations #116
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed May 15, 2023
1 parent 8c5ee48 commit d158857
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions server/internal/nginx/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ import (
type NgxConfig struct {
FileName string `json:"file_name"`
Name string `json:"name"`
Upstreams []*NgxUpstream `json:"upstreams,omitempty"`
Servers []*NgxServer `json:"servers,omitempty"`
Upstreams []*NgxUpstream `json:"upstreams"`
Servers []*NgxServer `json:"servers"`
Custom string `json:"custom"`
c *gonginx.Config
}

type NgxServer struct {
Directives []*NgxDirective `json:"directives,omitempty"`
Locations []*NgxLocation `json:"locations,omitempty"`
Directives []*NgxDirective `json:"directives"`
Locations []*NgxLocation `json:"locations"`
Comments string `json:"comments"`
}

type NgxUpstream struct {
Name string `json:"name"`
Directives []*NgxDirective `json:"directives,omitempty"`
Directives []*NgxDirective `json:"directives"`
Comments string `json:"comments"`
}

Expand Down

0 comments on commit d158857

Please # to comment.