Add annotation for setting proxy_redirect
This commit is contained in:
parent
b2a4f5dccd
commit
c5b0c8ab0d
6 changed files with 64 additions and 22 deletions
|
|
@ -72,6 +72,16 @@ type Backend struct {
|
|||
// Parameters for proxy-pass directive (eg. Apache web server).
|
||||
ProxyPassParams string `json:"proxy-pass-params"`
|
||||
|
||||
// Sets the original text that should be changed in the "Location" and "Refresh" header fields of a proxied server response.
|
||||
// http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect
|
||||
// Default: off
|
||||
ProxyRedirectFrom string `json:"proxy-redirect-from"`
|
||||
|
||||
// Sets the replacement text that should be changed in the "Location" and "Refresh" header fields of a proxied server response.
|
||||
// http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_redirect
|
||||
// Default: ""
|
||||
ProxyRedirectTo string `json:"proxy-redirect-to"`
|
||||
|
||||
// Enables or disables buffering of a client request body.
|
||||
// http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_request_buffering
|
||||
ProxyRequestBuffering string `json:"proxy-request-buffering"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue