Currently only supports a single use case. If you need to connect to other panels or systems, feel free to contribute.
- Currently only supports
CentOS 7/8 - Requires registration of a
cloudflareaccount and application for a token . Users obtain anSSLcertificate. - Uses
SSPanelas the default panel. To make other changes, please refer to theXrayRmanual configuration. - By default, the client link uses
443and the server listens on8443. If you need to make changes, please configure it manually. cloudflarehas port restrictions when CDN is enabled. If you need to customize the port, please pay attention to the guide .- Only supports the
Trojan-GO wsprotocol. - If you use protocols such as
TCP/UDP, usenginx-mod-streamto process them.
The automatic script defaults to using the ws protocol, with Trojan service listening on port 8443, and nginx listening on ports 443 and 80.
Port 80 is used for a fallback website to disguise, while port 443 is used to handle SSL proxy forwarding to the 8443 service.
{
"allow_insecure": false,
"offset_port_user": "443",
"offset_port_node": "8443",
"server_sub": "domain",
"host": "domain",
"network": "ws",
"path": "/ws",
"ws-opts": {
"path": "/ws"
}
}First configure the Custom Config, and then use the script below for one-click deployment success.
bash <(curl -fsSL raw.githubusercontent.com/fupengl/xrayr-node.sh/master/trojan-node.sh)- Uses
SSPanel-Uimpanel Trojan-gows protocol- Automatically applies for a
cloudflarecertificate - Uses
nginxto processssl websocket - Automatically wraps
IPV4/IPV6network cards usingcloudflare wrapto solve website blocking ofVPSaddresses - Supports
cloudflare CDNconfiguration