Railway

Deploy GProxy

Multi-provider LLM proxy with built-in admin frontend

Deploy GProxy

Just deployed

/app/data

Deploy and Host gproxy on Railway

gproxy is a lightweight reverse proxy that securely routes HTTP and gRPC traffic using flexible expression-based routing rules. It supports automatic Let's Encrypt (ACME) TLS certificates, WebSockets, CORS, hot-reloadable configuration, and transparent proxying, making it ideal for modern API gateways and microservice deployments.

About Hosting gproxy

Railway provides a simple way to deploy gproxy without managing infrastructure. This template deploys the official Docker image and exposes the proxy through Railway's networking. A Railway Volume mounted at /app/data persists the SQLite database and runtime data across deployments. Railway automatically manages HTTPS, deployments, environment variables, and scaling, while gproxy handles HTTP and gRPC routing, TLS certificate management, and configurable reverse proxy rules.

Common Use Cases

  • Secure reverse proxy for HTTP and gRPC services.
  • API gateway with expression-based request routing.
  • Front-end proxy for microservices with automatic TLS and CORS support.

Dependencies for gproxy Hosting

DependencyRequiredPurpose
Railway VolumeYesStores SQLite database and application data.

Deployment Dependencies

ResourceLink
GitHub Repositoryhttps://github.com/LeenHawk/gproxy
gproxy Documentationhttps://gproxy.leenhawk.com/
Docker Imagehttps://ghcr.io/leenhawk/gproxy
Original gproxy Projecthttps://github.com/graphikDB/gproxy

Implementation Details

Docker

This template deploys the following Docker image:

ghcr.io/leenhawk/gproxy:latest

No build process is required because Railway pulls the prebuilt Docker image directly.

Public Networking

SettingValue
Proxy TypeHTTP Proxy
Target Port8787

Environment Variables

Configure the following Railway Variables before deploying.

VariableRequiredDescription
GPROXY_ADMIN_KEYYesStrong administrator authentication key.
GPROXY_HOSTYesService bind address.
GPROXY_PORTYesInternal listening port. Use ${{PORT}}.
GPROXY_DATA_DIRYesDirectory used to store the SQLite database and application data.
GPROXY_DSNYesSQLite database connection string.
RUST_LOGNoApplication log level.

Raw Editor example:

GPROXY_ADMIN_KEY=your-strong-key
GPROXY_HOST=0.0.0.0
GPROXY_PORT=${{PORT}}
GPROXY_DATA_DIR=/app/data
GPROXY_DSN=sqlite:///app/data/gproxy.db?mode=rwc
RUST_LOG=info

Persistent Storage

A Railway Volume is required.

  1. Open your Railway service.
  2. Navigate to Settings → Volumes.
  3. Click Add Volume.
  4. Mount the volume at:
/app/data

The mounted volume stores the SQLite database and application data so they persist across redeployments and restarts.

Build & Start

This template deploys the official prebuilt Docker image.

No custom build or start commands are required.

Accessing the Application

After deployment:

  1. Open your Railway service.
  2. Navigate to Settings → Networking.
  3. Click Generate Domain.
  4. Open the generated Railway URL in your browser.

Initial Login

On the first startup, gproxy generates administrator credentials.

To retrieve them:

  1. Open your Railway project.
  2. Select the gproxy service.
  3. Open the Deploy Logs for the latest deployment.
  4. Locate the startup message containing the generated administrator username and password.
  5. Use those credentials to sign in to the web interface.

Deploy Logs

After logging in, you can begin configuring routing rules, proxy targets, TLS settings, and other application options.

Why Deploy gproxy on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying gproxy on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
113
View Template
stella
Self-host stella with web, API, Postgres, Redis, and object storage.

Jan Kubica
1
View Template
Hermes Agent | OpenClaw Alternative with Dashboard
Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

codestorm
56