config.proto 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. package v2ray.core;
  3. option csharp_namespace = "V2Ray.Core";
  4. option go_package = "core";
  5. option java_package = "com.v2ray.core";
  6. option java_outer_classname = "ConfigProto";
  7. import "v2ray.com/core/app/proxyman/config.proto";
  8. import "v2ray.com/core/common/serial/typed_message.proto";
  9. import "v2ray.com/core/common/log/config.proto";
  10. import "v2ray.com/core/transport/config.proto";
  11. // Configuration serialization format.
  12. enum ConfigFormat {
  13. Protobuf = 0;
  14. JSON = 1;
  15. }
  16. message Config {
  17. // Inbound handler configurations. Must have at least one item.
  18. repeated v2ray.core.app.proxyman.InboundHandlerConfig inbound = 1;
  19. // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
  20. repeated v2ray.core.app.proxyman.OutboundHandlerConfig outbound = 2;
  21. v2ray.core.common.log.Config log = 3;
  22. // App configuration. Must be one in the app directory.
  23. repeated v2ray.core.common.serial.TypedMessage app = 4;
  24. v2ray.core.transport.Config transport = 5;
  25. }