Skip to content

Commit

Permalink
Merge pull request #46 from G-Core/feature/CDI-467-waf-option
Browse files Browse the repository at this point in the history
add the WAF option
  • Loading branch information
andrei-lukyanchyk authored Jan 3, 2024
2 parents 16a344d + a8fc11e commit b3e2891
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type Options struct {
UseDefaultLEChain *UseDefaultLEChain `json:"use_default_le_chain"`
UserAgentACL *UserAgentACL `json:"user_agent_acl"`
UseRSALECert *UseRSALECert `json:"use_rsa_le_cert"`
WAF *WAF `json:"waf"`
Webp *Webp `json:"webp"` // deprecated in favor of image_stack
WebSockets *WebSockets `json:"websockets"`
}
Expand Down Expand Up @@ -285,6 +286,11 @@ type UseRSALECert struct {
Value bool `json:"value"`
}

type WAF struct {
Enabled bool `json:"enabled"`
Value bool `json:"value"`
}

// deprecated in favor of ImageStack
type Webp struct {
Enabled bool `json:"enabled"`
Expand Down

0 comments on commit b3e2891

Please sign in to comment.