server.jsonc 974 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "inbounds": [
  6. {
  7. "listen": "127.0.0.1",
  8. "port": 1234 ,
  9. "protocol": "vless",
  10. "settings": {
  11. "clients": [
  12. {
  13. "id": "" // 填写你的 UUID
  14. }
  15. ],
  16. "decryption": "none"
  17. },
  18. "streamSettings": {
  19. "network": "ws",
  20. "wsSettings": {
  21. "path": "/Path2WS" // 填写你的 path
  22. }
  23. },
  24. "sniffing": {
  25. "enabled": true,
  26. "destOverride": [
  27. "http",
  28. "tls"
  29. ]
  30. }
  31. }
  32. ],
  33. "outbounds": [
  34. {
  35. "tag": "direct",
  36. "protocol": "freedom",
  37. "settings": {}
  38. },
  39. {
  40. "tag": "blocked",
  41. "protocol": "blackhole",
  42. "settings": {}
  43. }
  44. ],
  45. "routing": {
  46. "domainStrategy": "IPIfNonMatch",
  47. "rules": [
  48. {
  49. "type": "field",
  50. "ip": [
  51. "geoip:cn",
  52. "geoip:private"
  53. ],
  54. "outboundTag": "blocked"
  55. }
  56. ]
  57. }
  58. }