config.json 1.3 KB

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