1
0

traffic.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "log": {
  3. "loglevel": "warning",
  4. "access": "./access.log",
  5. "error": "./error.log"
  6. },
  7. "api": {
  8. "tag": "api",
  9. "services": ["HandlerService", "LoggerService", "StatsService"]
  10. },
  11. "inbounds": [
  12. {
  13. "tag": "api",
  14. "listen": "127.0.0.1",
  15. "port": 62789,
  16. "protocol": "dokodemo-door",
  17. "settings": {
  18. "address": "127.0.0.1"
  19. }
  20. }
  21. ],
  22. "outbounds": [
  23. {
  24. "protocol": "freedom",
  25. "settings": {}
  26. },
  27. {
  28. "tag": "blocked",
  29. "protocol": "blackhole",
  30. "settings": {}
  31. }
  32. ],
  33. "policy": {
  34. "levels": {
  35. "0": {
  36. "statsUserDownlink": true,
  37. "statsUserUplink": true
  38. }
  39. },
  40. "system": {
  41. "statsInboundDownlink": true,
  42. "statsInboundUplink": true
  43. }
  44. },
  45. "routing": {
  46. "domainStrategy": "IPIfNonMatch",
  47. "rules": [
  48. {
  49. "type": "field",
  50. "inboundTag": ["api"],
  51. "outboundTag": "api"
  52. },
  53. {
  54. "type": "field",
  55. "outboundTag": "blocked",
  56. "ip": ["geoip:private"]
  57. },
  58. {
  59. "type": "field",
  60. "outboundTag": "blocked",
  61. "protocol": ["bittorrent"]
  62. }
  63. ]
  64. },
  65. "stats": {}
  66. }