config_server.jsonc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "log": {
  3. "loglevel": "debug"
  4. },
  5. "inbounds": [
  6. {
  7. "port": 443,
  8. "protocol": "trojan",
  9. "settings": {
  10. "clients": [
  11. {
  12. "password":"your_password", // password
  13. "flow": "xtls-rprx-vison"
  14. }
  15. ],
  16. "fallbacks": [
  17. {
  18. "dest": "/dev/shm/default.sock",
  19. "xver": 1
  20. },
  21. {
  22. "alpn": "h2",
  23. "dest": "/dev/shm/h2c.sock",
  24. "xver": 1
  25. }
  26. ]
  27. },
  28. "streamSettings": {
  29. "network": "tcp",
  30. "security": "tls",
  31. "tlsSettings": {
  32. "alpn": [
  33. "http/1.1",
  34. "h2"
  35. ],
  36. "certificates": [
  37. {
  38. "certificateFile": "/path/to/cert", // Certificate file absolute directory
  39. "keyFile": "/path/to/key", // Key file absolute directory
  40. "ocspStapling": 3600 // Verification cycle 3600 Second
  41. }
  42. ],
  43. "minVersion": "1.2" // If it is an ecc certificate, use TLSv1.2 at least. If you don't know the certificate type or it is not an ecc certificate, delete this line
  44. }
  45. }
  46. }
  47. ],
  48. "outbounds": [
  49. {
  50. "protocol": "freedom"
  51. }
  52. ]
  53. }