gitmyhub

avaco-railway

JavaScript ★ 43 updated 18d ago

Avaco Railway Relay is a lightweight Node.js reverse proxy that runs on Railway, a cloud hosting platform, and forwards traffic from a public HTTPS address to a private server. The README is written in Persian (Farsi). It is designed specifically for the XHTTP protocol used by Xray-core, a networking tool popular in regions with internet censorship for maintaining access to blocked services.

The relay sits between client applications such as v2rayN or Hiddify (proxy clients) and a personal server running Xray-core. A client connects to the Railway-hosted public URL, the relay authenticates the request using an optional secret key, and then forwards the traffic to the private backend server. This hides the actual server address from outside observers while providing a stable public endpoint.

The project has zero external dependencies and uses only built-in Node.js features. It includes concurrency control to cap the number of simultaneous connections, configurable timeout handling to drop slow connections, and a debug endpoint that returns current configuration and live connection counts. Users can choose from four Railway geographic regions for the server location.

Deployment uses the Railway CLI. After cloning the repository, users create a Railway project, set a handful of environment variables (the target server address, relay path, and an optional authentication key), and the service deploys automatically. Railway's free tier provides approximately $5 in monthly credits, which the README estimates covers around 500 hours of activity.

The project is GPL-3.0 licensed and maintained by Avaco Cloud, which also has a Telegram channel linked in the README.