config.proto 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. syntax = "proto3";
  2. package xray.transport.internet.xtls;
  3. option csharp_namespace = "Xray.Transport.Internet.Xtls";
  4. option go_package = "github.com/xtls/xray-core/transport/internet/xtls";
  5. option java_package = "com.xray.transport.internet.xtls";
  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. // If true, root certificates on the system will not be loaded for
  33. // verification.
  34. bool disable_system_root = 7;
  35. // The minimum TLS version.
  36. string min_version = 8;
  37. }