mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 05:06:07 +03:00
34 lines
774 B
Protocol Buffer
34 lines
774 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package xray.proxy.http;
|
|
option csharp_namespace = "Xray.Proxy.Http";
|
|
option go_package = "github.com/xtls/xray-core/proxy/http";
|
|
option java_package = "com.xray.proxy.http";
|
|
option java_multiple_files = true;
|
|
|
|
import "common/protocol/server_spec.proto";
|
|
|
|
message Account {
|
|
string username = 1;
|
|
string password = 2;
|
|
}
|
|
|
|
// Config for HTTP proxy server.
|
|
message ServerConfig {
|
|
map<string, string> accounts = 2;
|
|
bool allow_transparent = 3;
|
|
uint32 user_level = 4;
|
|
}
|
|
|
|
message Header {
|
|
string key = 1;
|
|
string value = 2;
|
|
}
|
|
|
|
// ClientConfig is the protobuf config for HTTP proxy client.
|
|
message ClientConfig {
|
|
// Sever is a list of HTTP server addresses.
|
|
repeated xray.common.protocol.ServerEndpoint server = 1;
|
|
repeated Header header = 2;
|
|
}
|