trojan.config.json.template 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "run_type": "server",
  3. "local_addr": "0.0.0.0",
  4. "local_port": 443,
  5. "remote_addr": "10.10.0.3",
  6. "remote_port": 81,
  7. "password": [
  8. "${TROJAN_PASSWORD}"
  9. ],
  10. "log_level": 1,
  11. "ssl": {
  12. "cert": "/config/keys/letsencrypt/fullchain.pem",
  13. "key": "/config/keys/letsencrypt/privkey.pem",
  14. "key_password": "",
  15. "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",
  16. "cipher_tls13": "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384",
  17. "prefer_server_cipher": true,
  18. "alpn": [
  19. "http/1.1"
  20. ],
  21. "reuse_session": true,
  22. "session_ticket": false,
  23. "session_timeout": 600,
  24. "plain_http_response": "",
  25. "curves": "",
  26. "dhparam": ""
  27. },
  28. "tcp": {
  29. "prefer_ipv4": false,
  30. "no_delay": true,
  31. "keep_alive": true,
  32. "reuse_port": true,
  33. "fast_open": true,
  34. "fast_open_qlen": 20
  35. },
  36. "mysql": {
  37. "enabled": false,
  38. "server_addr": "127.0.0.1",
  39. "server_port": 3306,
  40. "database": "trojan",
  41. "username": "trojan",
  42. "password": ""
  43. }
  44. }