Skip to content

Commit

Permalink
MINOR: api: add new CustomClientIP option to Edge deployment
Browse files Browse the repository at this point in the history
This commit adds the new option `CustomClientIP` / `customClientIP` to
the CreateOrUpdateEdgeDeploymentServiceBody struct. This option prevents
the Fastly-Client-IP header from being overwritten by the NGWAF. It is
intended for advanced use cases.
  • Loading branch information
daniel-corbett committed Aug 13, 2024
1 parent b31321f commit c35078b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,7 @@ func (sc *Client) DeleteEdgeDeployment(corpName, siteName string) error {
type CreateOrUpdateEdgeDeploymentServiceBody struct {
ActivateVersion *bool `json:"activateVersion,omitempty"` // Activate Fastly VCL service after clone
PercentEnabled int `json:"percentEnabled,omitempty"` // Percentage of traffic to send to NGWAF@Edge
CustomClientIP *bool `json:"customClientIP,omitempty"` // enable to prevent Fastly-Client-IP from being overwritten by the NGWAF@Edge
}

// CreateOrUpdateEdgeDeploymentService copies the backends from the Fastly service to the
Expand Down

0 comments on commit c35078b

Please sign in to comment.