config.json 1.4 KB

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