config_server.json 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "routing": {
  6. "domainStrategy": "AsIs",
  7. "rules": [
  8. {
  9. "type": "field",
  10. "ip": [
  11. "geoip:private"
  12. ],
  13. "outboundTag": "block"
  14. }
  15. ]
  16. },
  17. "inbounds": [
  18. {
  19. "listen": "0.0.0.0",
  20. "port": 1234,
  21. "protocol": "vmess",
  22. "settings": {
  23. "clients": [
  24. {
  25. "id": ""
  26. }
  27. ]
  28. },
  29. "streamSettings": {
  30. "network": "tcp",
  31. "tcpSettings": {
  32. "header": {
  33. "type": "http",
  34. "response": {
  35. "version": "1.1",
  36. "status": "200",
  37. "reason": "OK",
  38. "headers": {
  39. "Content-Type": [
  40. "application/octet-stream",
  41. "video/mpeg",
  42. "application/x-msdownload",
  43. "text/html",
  44. "application/x-shockwave-flash"
  45. ],
  46. "Transfer-Encoding": [
  47. "chunked"
  48. ],
  49. "Connection": [
  50. "keep-alive"
  51. ],
  52. "Pragma": "no-cache"
  53. }
  54. }
  55. }
  56. },
  57. "security": "none"
  58. }
  59. }
  60. ],
  61. "outbounds": [
  62. {
  63. "protocol": "freedom",
  64. "tag": "direct"
  65. },
  66. {
  67. "protocol": "blackhole",
  68. "tag": "block"
  69. }
  70. ]
  71. }