1syntax = "proto3"; 2 3package xray.proxy.http; 4option csharp_namespace = "Xray.Proxy.Http"; 5option go_package = "github.com/xtls/xray-core/proxy/http"; 6option java_package = "com.xray.proxy.http"; 7option java_multiple_files = true; 8 9import "common/protocol/server_spec.proto"; 10 11message Account { 12 string username = 1; 13 string password = 2; 14} 15 16// Config for HTTP proxy server. 17message ServerConfig { 18 uint32 timeout = 1 [deprecated = true]; 19 map<string, string> accounts = 2; 20 bool allow_transparent = 3; 21 uint32 user_level = 4; 22} 23 24// ClientConfig is the protobuf config for HTTP proxy client. 25message ClientConfig { 26 // Sever is a list of HTTP server addresses. 27 repeated xray.common.protocol.ServerEndpoint server = 1; 28} 29