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
cloudflare
account and application for a token . Users obtain anSSL
certificate. - Uses
SSPanel
as the default panel. To make other changes, please refer to theXrayR
manual configuration. - By default, the client link uses
443
and the server listens on8443
. If you need to make changes, please configure it manually. cloudflare
has port restrictions when CDN is enabled. If you need to customize the port, please pay attention to the guide .- Only supports the
Trojan-GO ws
protocol. - If you use protocols such as
TCP/UDP
, usenginx-mod-stream
to 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-Uim
panel Trojan-go
ws protocol- Automatically applies for a
cloudflare
certificate - Uses
nginx
to processssl websocket
- Automatically wraps
IPV4/IPV6
network cards usingcloudflare wrap
to solve website blocking ofVPS
addresses - Supports
cloudflare CDN
configuration