1
0

config.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "log": {
  3. "loglevel": "warning",
  4. "access": "./access.log",
  5. "error": "./error.log"
  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. "protocol": "freedom",
  29. "settings": {}
  30. },
  31. {
  32. "tag": "blocked",
  33. "protocol": "blackhole",
  34. "settings": {}
  35. }
  36. ],
  37. "policy": {
  38. "levels": {
  39. "0": {
  40. "statsUserDownlink": true,
  41. "statsUserUplink": true
  42. }
  43. },
  44. "system": {
  45. "statsInboundDownlink": true,
  46. "statsInboundUplink": true
  47. }
  48. },
  49. "routing": {
  50. "domainStrategy": "IPIfNonMatch",
  51. "rules": [
  52. {
  53. "type": "field",
  54. "inboundTag": [
  55. "api"
  56. ],
  57. "outboundTag": "api"
  58. },
  59. {
  60. "type": "field",
  61. "outboundTag": "blocked",
  62. "ip": [
  63. "geoip:private"
  64. ]
  65. },
  66. {
  67. "type": "field",
  68. "outboundTag": "blocked",
  69. "protocol": [
  70. "bittorrent"
  71. ]
  72. }
  73. ]
  74. },
  75. "stats": {}
  76. }