config: support redirect actions (#1776)

* add route redirect options

* add xds support for redirect

* add test

* handle nil destinations

* remove unchanged statik files

* remove unchanged statik files

* update docs

* Update docs/reference/settings.yaml

Co-authored-by: Travis Groth <travisgroth@users.noreply.github.com>

Co-authored-by: Travis Groth <travisgroth@users.noreply.github.com>
This commit is contained in:
Caleb Doxsey 2021-01-14 16:18:27 -07:00 committed by GitHub
parent 6466efddd5
commit c99994bed8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 968 additions and 527 deletions

View file

@ -12,12 +12,25 @@ message Config {
Settings settings = 3;
}
message RouteRedirect {
optional bool https_redirect = 1;
optional string scheme_redirect = 2;
optional string host_redirect = 3;
optional uint32 port_redirect = 4;
optional string path_redirect = 5;
optional string prefix_rewrite = 6;
optional int32 response_code = 7;
optional bool strip_query = 8;
}
message Route {
string name = 1;
string from = 2;
string to = 3;
RouteRedirect redirect = 34;
repeated string allowed_users = 4 [ deprecated = true ];
repeated string allowed_groups = 5 [ deprecated = true ];
repeated string allowed_domains = 6 [ deprecated = true ];