1
0

config.json 1.2 KB

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