mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
[management,proxy] Add per-target options to reverse proxy (#5501)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@ package management;
|
||||
|
||||
option go_package = "/proto";
|
||||
|
||||
import "google/protobuf/duration.proto";
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
// ProxyService - Management is the SERVER, Proxy is the CLIENT
|
||||
@@ -50,9 +51,22 @@ enum ProxyMappingUpdateType {
|
||||
UPDATE_TYPE_REMOVED = 2;
|
||||
}
|
||||
|
||||
enum PathRewriteMode {
|
||||
PATH_REWRITE_DEFAULT = 0;
|
||||
PATH_REWRITE_PRESERVE = 1;
|
||||
}
|
||||
|
||||
message PathTargetOptions {
|
||||
bool skip_tls_verify = 1;
|
||||
google.protobuf.Duration request_timeout = 2;
|
||||
PathRewriteMode path_rewrite = 3;
|
||||
map<string, string> custom_headers = 4;
|
||||
}
|
||||
|
||||
message PathMapping {
|
||||
string path = 1;
|
||||
string target = 2;
|
||||
PathTargetOptions options = 3;
|
||||
}
|
||||
|
||||
message Authentication {
|
||||
|
||||
Reference in New Issue
Block a user