This project allows you to deploy a VLESS proxy server over WebSocket using Xray-core, fully containerized with Docker and deployed to Google Cloud Run, fronted by Google Cloud CDN.
- βοΈ VLESS over WebSocket (WS)
- βοΈ Deployed on Google Cloud Run (serverless + autoscaling)
- βοΈ Works with Google Cloud Load Balancer + CDN
- βοΈ Dockerized and easy to deploy
- βοΈ Designed for domain fronting, bypassing, FreeNet
- β Google Cloud IPs starting with
34.*and35.*do NOT work reliably with V2Ray/VLESS. - β Use a custom domain with HTTPS via Google Load Balancer + CDN for proper functionality.
{
"inbounds": [
{
"port": 8080,
"protocol": "vless",
"settings": {
"clients": [
{
"id": "a3b7de87-b46f-4dcf-b6ed-5bf5ebe83167",
"level": 0
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/t.me/ragnarservers"
}
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}π Replace the UUID with your own for security.
docker build -t gcr.io/YOUR_PROJECT_ID/vless-ws .docker push gcr.io/YOUR_PROJECT_ID/vless-wsgcloud run deploy vless-ws \
--image gcr.io/YOUR_PROJECT_ID/vless-ws \
--platform managed \
--region us-central1 \
--allow-unauthenticated \
--port 8080βοΈ Make sure to allow unauthenticated access.
- Go to Google Cloud Console > Network services > Load balancing
- Create a new HTTP(S) Load Balancer
- Add your Cloud Run service as a backend
- Enable CDN on the backend
- Attach a custom domain and SSL certificate
π HTTPS is handled by Google; no need to configure TLS in Xray.
Use the following settings in your client app:
| Setting | Value |
|---|---|
| Protocol | VLESS |
| Address | your.domain.com |
| Port | 443 (HTTPS) |
| UUID | a3b7de87-b46f-4dcf-b6ed-5bf5ebe83167 |
| Encryption | none |
| Transport | WebSocket (WS) |
| WS Path | /notragnar |
| TLS | Yes (via Google CDN) |
- β Windows: V2RayN
- β Android: SagerNet / V2RayNG
- β iOS: Shadowrocket / V2Box
- β macOS/Linux: Xray CLI
- Use random UUIDs and WS paths
- Combine with Cloudflare DNS and proxy
- Rotate domains if needed
- Enable logs in debug environments only
This project is licensed under the MIT License.
Made with β€οΈ by Ragnar