config.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "run_type": "server",
  3. "local_addr": "0.0.0.0",
  4. "local_port": 443,
  5. "remote_addr": "127.0.0.1",
  6. "remote_port": 80,
  7. "password": [
  8. "password1",
  9. "password2"
  10. ],
  11. "log_level": 1,
  12. "ssl": {
  13. "cert": "/path/to/certificate.crt",
  14. "key": "/path/to/private.key",
  15. "key_password": "",
  16. "cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384",
  17. "cipher_tls13": "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384",
  18. "prefer_server_cipher": true,
  19. "alpn": [
  20. "http/1.1"
  21. ],
  22. "reuse_session": true,
  23. "session_ticket": false,
  24. "session_timeout": 600,
  25. "plain_http_response": "",
  26. "curves": "",
  27. "dhparam": ""
  28. },
  29. "tcp": {
  30. "prefer_ipv4": false,
  31. "no_delay": true,
  32. "keep_alive": true,
  33. "reuse_port": false,
  34. "fast_open": false,
  35. "fast_open_qlen": 20
  36. },
  37. "mysql": {
  38. "enabled": false,
  39. "server_addr": "127.0.0.1",
  40. "server_port": 3306,
  41. "database": "trojan",
  42. "username": "trojan",
  43. "password": ""
  44. }
  45. }