1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00
v2fly/proxy/http/config.proto

29 lines
757 B
Protocol Buffer
Raw Normal View History

2016-08-25 15:55:49 -04:00
syntax = "proto3";
2016-09-26 09:14:16 -04:00
package v2ray.core.proxy.http;
2016-12-22 18:24:28 -05:00
option csharp_namespace = "V2Ray.Core.Proxy.Http";
option go_package = "github.com/v2fly/v2ray-core/v5/proxy/http";
2016-09-26 09:14:16 -04:00
option java_package = "com.v2ray.core.proxy.http";
2017-02-03 17:15:10 -05:00
option java_multiple_files = true;
2016-08-25 15:55:49 -04:00
import "common/protocol/server_spec.proto";
2019-07-23 21:15:05 -04:00
message Account {
string username = 1;
string password = 2;
}
2016-08-25 15:55:49 -04:00
// Config for HTTP proxy server.
message ServerConfig {
2017-11-27 16:09:30 -05:00
uint32 timeout = 1 [deprecated = true];
2017-10-26 15:44:13 -04:00
map<string, string> accounts = 2;
2017-11-05 16:13:15 -05:00
bool allow_transparent = 3;
2017-11-27 16:09:30 -05:00
uint32 user_level = 4;
2016-08-25 15:55:49 -04:00
}
2019-07-23 21:15:05 -04:00
// ClientConfig is the protobuf config for HTTP proxy client.
2016-08-25 15:55:49 -04:00
message ClientConfig {
2019-07-23 21:15:05 -04:00
// Sever is a list of HTTP server addresses.
repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
2017-10-26 15:44:13 -04:00
}