xray.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "log": {
  3. "access": "/var/log/xray/access.log",
  4. "error": "/var/log/xray/error.log",
  5. "loglevel": "warning"
  6. },
  7. "inbounds": [
  8. {
  9. "port": 443,
  10. "protocol": "vless",
  11. "settings": {
  12. "clients": [],
  13. "decryption": "none",
  14. "fallbacks": [
  15. {
  16. "dest": 60000,
  17. "alpn": "",
  18. "xver": 1
  19. },
  20. {
  21. "dest": 60001,
  22. "alpn": "h2",
  23. "xver": 1
  24. },
  25. {
  26. "dest": 60002,
  27. "path": "/xray",
  28. "xver": 1
  29. }
  30. ]
  31. },
  32. "streamSettings": {
  33. "network": "tcp",
  34. "security": "xtls",
  35. "xtlsSettings": {
  36. "minVersion": "1.2",
  37. "certificates": [
  38. {
  39. "certificateFile": "/aidan/xray/xray.crt",
  40. "keyFile": "/aidan/xray/xray.key"
  41. }
  42. ]
  43. }
  44. },
  45. "sniffing": {
  46. "enabled": true,
  47. "destOverride": [
  48. "http",
  49. "tls"
  50. ]
  51. }
  52. },
  53. {
  54. "port": 60002,
  55. "listen": "127.0.0.1",
  56. "protocol": "vless",
  57. "settings": {
  58. "clients": [],
  59. "decryption": "none"
  60. },
  61. "streamSettings": {
  62. "network": "ws",
  63. "security": "none",
  64. "wsSettings": {
  65. "acceptProxyProtocol": true,
  66. "path": "/xray"
  67. }
  68. }
  69. }
  70. ],
  71. "outbounds": [
  72. {
  73. "protocol": "freedom"
  74. }
  75. ]
  76. }