config.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. }
  49. },
  50. "routing": {
  51. "domainStrategy": "IPIfNonMatch",
  52. "rules": [
  53. {
  54. "type": "field",
  55. "inboundTag": [
  56. "api"
  57. ],
  58. "outboundTag": "api"
  59. },
  60. {
  61. "type": "field",
  62. "outboundTag": "blocked",
  63. "ip": [
  64. "geoip:private"
  65. ]
  66. },
  67. {
  68. "type": "field",
  69. "outboundTag": "blocked",
  70. "protocol": [
  71. "bittorrent"
  72. ]
  73. }
  74. ]
  75. },
  76. "stats": {}
  77. }