mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 09:19:39 +02:00
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:
parent
6466efddd5
commit
c99994bed8
8 changed files with 968 additions and 527 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue