github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/proxy/http/config.proto (about)

     1  syntax = "proto3";
     2  
     3  package xray.proxy.http;
     4  option csharp_namespace = "Xray.Proxy.Http";
     5  option go_package = "github.com/xmplusdev/xmcore/proxy/http";
     6  option java_package = "com.xray.proxy.http";
     7  option java_multiple_files = true;
     8  
     9  import "common/protocol/server_spec.proto";
    10  
    11  message Account {
    12    string username = 1;
    13    string password = 2;
    14  }
    15  
    16  // Config for HTTP proxy server.
    17  message 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  message Header {
    25    string key = 1;
    26    string value = 2;
    27  }
    28  
    29  // ClientConfig is the protobuf config for HTTP proxy client.
    30  message ClientConfig {
    31    // Sever is a list of HTTP server addresses.
    32    repeated xray.common.protocol.ServerEndpoint server = 1;
    33    repeated Header header = 2;
    34  }