Skip to content

Commit

Permalink
Merge pull request #60 from G-Core/feature/CDI-816-add-fastedge-optio…
Browse files Browse the repository at this point in the history
…n-to-terraform

CDI-816: add FastEdge option
  • Loading branch information
andrei-lukyanchyk authored Aug 22, 2024
2 parents 1e07835 + ce48490 commit 5a6dfa1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions gcore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Options struct {
DisableCache *DisableCache `json:"disable_cache"`
DisableProxyForceRanges *DisableProxyForceRanges `json:"disable_proxy_force_ranges"`
EdgeCacheSettings *EdgeCacheSettings `json:"edge_cache_settings"`
FastEdge *FastEdge `json:"fastedge"`
FetchCompressed *FetchCompressed `json:"fetch_compressed"`
FollowOriginRedirect *FollowOriginRedirect `json:"follow_origin_redirect"`
ForceReturn *ForceReturn `json:"force_return"`
Expand Down Expand Up @@ -104,6 +105,17 @@ type EdgeCacheSettings struct {
Default string `json:"default"`
}

type FastEdgeAppConfig struct {
Enabled bool `json:"enabled"`
AppID string `json:"app_id"`
InterruptOnError bool `json:"interrupt_on_error"`
}

type FastEdge struct {
Enabled bool `json:"enabled"`
OnRequestHeaders *FastEdgeAppConfig `json:"on_request_headers"`
}

type FetchCompressed struct {
Enabled bool `json:"enabled"`
Value bool `json:"value"`
Expand Down

0 comments on commit 5a6dfa1

Please sign in to comment.