config.proto 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. syntax = "proto3";
  2. package v2ray.core.transport.internet.tls;
  3. option csharp_namespace = "V2Ray.Core.Transport.Internet.Tls";
  4. option go_package = "tls";
  5. option java_package = "com.v2ray.core.transport.internet.tls";
  6. option java_multiple_files = true;
  7. message Certificate {
  8. // TLS certificate in x509 format.
  9. bytes Certificate = 1;
  10. // TLS key in x509 format.
  11. bytes Key = 2;
  12. enum Usage {
  13. ENCIPHERMENT = 0;
  14. AUTHORITY_VERIFY = 1;
  15. AUTHORITY_ISSUE = 2;
  16. }
  17. Usage usage = 3;
  18. }
  19. message Config {
  20. // Whether or not to allow self-signed certificates.
  21. bool allow_insecure = 1;
  22. // Whether or not to allow insecure cipher suites.
  23. bool allow_insecure_ciphers = 5;
  24. // List of certificates to be served on server.
  25. repeated Certificate certificate = 2;
  26. // Override server name.
  27. string server_name = 3;
  28. // Lists of string as ALPN values.
  29. repeated string next_protocol = 4;
  30. // Whether or not to disable session (ticket) resumption.
  31. bool disable_session_resumption = 6;
  32. }