config.json.template 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {
  2. "stats": {},
  3. "api": {
  4. "tag": "api",
  5. "services": [
  6. "StatsService"
  7. ]
  8. },
  9. "policy": {
  10. "levels": {
  11. "0": {
  12. "statsUserUplink": true,
  13. "statsUserDownlink": true
  14. }
  15. },
  16. "system": {
  17. "statsInboundUplink": true,
  18. "statsInboundDownlink": true
  19. }
  20. },
  21. "log": {
  22. "access": "/var/log/v2ray/access.log",
  23. "error": "/var/log/v2ray/error.log",
  24. "loglevel": "warning"
  25. },
  26. "header": {
  27. "type": "none"
  28. },
  29. "inbounds": [{
  30. "port": 10443,
  31. "protocol": "vmess",
  32. "settings": {
  33. "clients": [{
  34. "email": "owner",
  35. "id": "${UUID}",
  36. "alterId": 64
  37. }]
  38. },
  39. "streamSettings": {
  40. "network": "ws",
  41. "wsSettings": {
  42. "path": "/${V2RAY_PATH}"
  43. },
  44. "sockopt": {
  45. "tcpFastOpen": true
  46. }
  47. }
  48. },
  49. {
  50. "listen": "127.0.0.1",
  51. "port": 10085,
  52. "protocol": "dokodemo-door",
  53. "settings": {
  54. "address": "127.0.0.1"
  55. },
  56. "tag": "api"
  57. }
  58. ],
  59. "outbound": {
  60. "protocol": "freedom",
  61. "settings": {}
  62. },
  63. "routing": {
  64. "settings": {
  65. "rules": [{
  66. "inboundTag": [
  67. "api"
  68. ],
  69. "outboundTag": "api",
  70. "type": "field"
  71. }]
  72. },
  73. "strategy": "rules"
  74. }
  75. }