trojan-grpc.json 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "inbounds": [
  3. {
  4. "port": 10002,
  5. "listen": "0.0.0.0",
  6. "protocol": "trojan",
  7. "settings": {
  8. "clients": [
  9. {
  10. "password": "example",
  11. "email": "grpc@example.com"
  12. }
  13. ]
  14. },
  15. "streamSettings": {
  16. "network": "grpc",
  17. "security": "tls",
  18. "tlsSettings": {
  19. "certificates": [
  20. {
  21. "certificateFile": "/etc/ssl/v2ray/fullchain.pem",
  22. "keyFile": "/etc/ssl/v2ray/privkey.pem"
  23. }
  24. ]
  25. },
  26. "grpcSettings": {
  27. "serviceName": "example"
  28. }
  29. }
  30. }
  31. ],
  32. "outbounds": [
  33. {
  34. "protocol": "freedom"
  35. }
  36. ],
  37. "log": {
  38. "loglevel": "debug"
  39. }
  40. }