You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Redirect: redirect parameters when using an ACL with `redirect` action
1001
+
Redirect*ACLActionRedirect`json:"redirect"`
1002
+
}
1003
+
1004
+
// ACLActionRedirect: acl action redirect
1005
+
typeACLActionRedirectstruct {
1006
+
// Type: redirect type
1007
+
//
1008
+
// Default value: location
1009
+
TypeACLActionRedirectRedirectType`json:"type"`
1010
+
// Target: redirect target (target URL for `location`, or target `scheme`)
1011
+
//
1012
+
// An URL can be used in case of a location redirect (e.g. `https://scaleway.com` will redirect to this same URL).
1013
+
// A scheme name (e.g. `https`, `http`, `ftp`, `git`) will replace the request's original scheme. This can be useful to implement HTTP to HTTPS redirects.
1014
+
// Placeholders can be used when using a `location` redirect in order to insert original request's parts, these are:
1015
+
// - `{{ host }}` for the current request's Host header
1016
+
// - `{{ query }}` for the current request's query string
1017
+
// - `{{ path }}` for the current request's URL path
1018
+
// - `{{ scheme }}` for the current request's scheme
1019
+
//
1020
+
Targetstring`json:"target"`
1021
+
// Code: HTTP redirect code to use. Valid values are 301, 302, 303, 307 and 308. Default value is 302
0 commit comments