config_server.jsonc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "log": {
  3. "loglevel": "warning"
  4. },
  5. "inbounds": [
  6. {
  7. "port": 443,
  8. "protocol": "vless",
  9. "settings": {
  10. "clients": [
  11. {
  12. "id": "", // 填写你的 UUID
  13. "level": 0,
  14. "email": "[email protected]"
  15. }
  16. ],
  17. "decryption": "none",
  18. "fallbacks": [
  19. {
  20. "dest": 80
  21. },
  22. {
  23. "path": "/websocket", // 必须换成自定义的 PATH
  24. "dest": 1234,
  25. "xver": 1
  26. }
  27. ]
  28. },
  29. "streamSettings": {
  30. "network": "tcp",
  31. "security": "tls",
  32. "tlsSettings": {
  33. "alpn": [
  34. "http/1.1"
  35. ],
  36. "certificates": [
  37. {
  38. "certificateFile": "/path/to/fullchain.crt", // 换成你的证书,绝对路径
  39. "keyFile": "/path/to/private.key" // 换成你的私钥,绝对路径
  40. }
  41. ]
  42. }
  43. }
  44. },
  45. {
  46. "port": 1234,
  47. "listen": "127.0.0.1",
  48. "protocol": "vless",
  49. "settings": {
  50. "clients": [
  51. {
  52. "id": "", // 填写你的 UUID
  53. "level": 0,
  54. "email": "[email protected]"
  55. }
  56. ],
  57. "decryption": "none"
  58. },
  59. "streamSettings": {
  60. "network": "ws",
  61. "security": "none",
  62. "wsSettings": {
  63. "acceptProxyProtocol": true, // 提醒:若你用 Nginx/Caddy 等反代 WS,需要删掉这行
  64. "path": "/websocket" // 必须换成自定义的 PATH,需要和上面的一致
  65. }
  66. }
  67. }
  68. ],
  69. "outbounds": [
  70. {
  71. "protocol": "freedom"
  72. }
  73. ]
  74. }