Install Xray

bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install

Config (WebSocket + TLS)

Configure Xray with VLESS protocol over WebSocket, behind Nginx with TLS termination. This provides excellent censorship resistance.

Nginx Config

location /ws {
    proxy_pass http://127.0.0.1:10000;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
}