server.jsonc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "inbounds": [
  6. {
  7. "port": 2001,
  8. "listen": "::1",
  9. "protocol": "vless",
  10. "settings": {
  11. "clients": [
  12. {
  13. "id": "",
  14. "email": "[email protected]"
  15. }
  16. ],
  17. "decryption": "none"
  18. },
  19. "streamSettings": {
  20. "security": "tls",
  21. "network": "http",
  22. "httpSettings": {
  23. "path": "/path",
  24. "host": [
  25. "xx.com"
  26. ]
  27. },
  28. "tlsSettings": {
  29. // "rejectUnknownSni": true,
  30. "minVersion": "1.3",
  31. "alpn": ["h3"],
  32. "certificates": [
  33. {
  34. "certificateFile": "CA.crt", // 换成你的证书,绝对路径
  35. "keyFile": "priv.key" // 换成你的私钥,绝对路径
  36. }
  37. ]
  38. }
  39. }
  40. }
  41. ],
  42. "outbounds": [
  43. {
  44. "tag": "direct",
  45. "protocol": "freedom",
  46. "settings": {}
  47. },
  48. {
  49. "tag": "blocked",
  50. "protocol": "blackhole",
  51. "settings": {}
  52. }
  53. ],
  54. "routing": {
  55. "domainStrategy": "AsIs",
  56. "rules": [
  57. {
  58. "type": "field",
  59. "ip": [
  60. "geoip:private"
  61. ],
  62. "outboundTag": "blocked"
  63. }
  64. ]
  65. }
  66. }