config_server.jsonc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. "log": {
  3. "loglevel": "debug"
  4. },
  5. "inbounds": [
  6. {
  7. "port": 443,
  8. "protocol": "vless",
  9. "settings": {
  10. "clients": [
  11. {
  12. "id": "", // run `xray uuid` to generate
  13. "flow": "xtls-rprx-vision"
  14. }
  15. ],
  16. "decryption": "none"
  17. },
  18. "streamSettings": {
  19. "network": "tcp",
  20. "security": "reality",
  21. "realitySettings": {
  22. "dest": "", // A website that support TLS1.3 and h2. You can also use `1.1.1.1:443` as dest
  23. "serverNames": [
  24. "" // A server name in the cert of dest site. If you use `1.1.1.1:443` as dest, then you can leave `serverNames` empty, it is a possible ways to bypass Iran's internet speed restrictions.
  25. ],
  26. "privateKey": "", // run `xray x25519` to generate. Public and private keys need to be corresponding.
  27. "shortIds": [// Required, list of shortIds available to clients, can be used to distinguish different clients
  28. "", // If this item exists, client shortId can be empty
  29. "0123456789abcdef" // 0 to f, length is a multiple of 2, maximum length is 16
  30. ]
  31. }
  32. },
  33. "sniffing": {
  34. "enabled": true,
  35. "destOverride": [
  36. "http",
  37. "tls",
  38. "quic"
  39. ],
  40. "routeOnly": true
  41. }
  42. }
  43. ],
  44. "outbounds": [
  45. {
  46. "protocol": "freedom",
  47. "tag": "direct"
  48. }
  49. ]
  50. }