config.json 1.4 KB

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