1
0

config.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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": "AsIs",
  34. "redirect": "",
  35. "noises": []
  36. }
  37. },
  38. {
  39. "tag": "blocked",
  40. "protocol": "blackhole",
  41. "settings": {}
  42. }
  43. ],
  44. "policy": {
  45. "levels": {
  46. "0": {
  47. "statsUserDownlink": true,
  48. "statsUserUplink": true
  49. }
  50. },
  51. "system": {
  52. "statsInboundDownlink": true,
  53. "statsInboundUplink": true,
  54. "statsOutboundDownlink": true,
  55. "statsOutboundUplink": true
  56. }
  57. },
  58. "routing": {
  59. "domainStrategy": "AsIs",
  60. "rules": [
  61. {
  62. "type": "field",
  63. "inboundTag": [
  64. "api"
  65. ],
  66. "outboundTag": "api"
  67. },
  68. {
  69. "type": "field",
  70. "outboundTag": "blocked",
  71. "ip": [
  72. "geoip:private"
  73. ]
  74. },
  75. {
  76. "type": "field",
  77. "outboundTag": "blocked",
  78. "protocol": [
  79. "bittorrent"
  80. ]
  81. }
  82. ]
  83. },
  84. "stats": {}
  85. }