1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-05 13:35:23 +00:00
v2fly/proxy/http/config.proto

29 lines
757 B
Protocol Buffer
Raw Normal View History

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