Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDM-648 Add options proxy_connect_timeout and proxy_read_timeout #54

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions gcore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type Options struct {
IPAddressACL *IPAddressACL `json:"ip_address_acl"`
LimitBandwidth *LimitBandwidth `json:"limit_bandwidth"`
ProxyCacheMethodsSet *ProxyCacheMethodsSet `json:"proxy_cache_methods_set"`
ProxyConnectTimeout *ProxyConnectTimeout `json:"proxy_connect_timeout"`
ProxyReadTimeout *ProxyReadTimeout `json:"proxy_read_timeout"`
QueryParamsBlacklist *QueryParamsBlacklist `json:"query_params_blacklist"`
QueryParamsWhitelist *QueryParamsWhitelist `json:"query_params_whitelist"`
RedirectHttpsToHttp *RedirectHttpsToHttp `json:"redirect_https_to_http"`
Expand Down Expand Up @@ -174,6 +176,16 @@ type ProxyCacheMethodsSet struct {
Value bool `json:"value"`
}

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

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

type QueryParamsBlacklist struct {
Enabled bool `json:"enabled"`
Value []string `json:"value"`
Expand Down
Loading