Skip to content

tailabs/mini-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mini Proxy

A high-performance HTTP/HTTPS reverse proxy written in Go. This proxy forwards requests to a backend service specified by the BACKEND_URL environment variable and handles X-Forwarded-* headers correctly.

Features

  • High-performance seven-layer proxy
  • Proper handling of X-Forwarded-For, X-Forwarded-Proto, and X-Forwarded-Host headers
  • Configurable backend URL via environment variable
  • Configurable port (defaults to 8080)

Deployment

Railway

You can deploy this proxy to Railway with one click:

Deploy on Railway

Or, you can deploy it manually by setting the BACKEND_URL environment variable in your Railway project.

Environment Variables

  • BACKEND_URL (required): The URL of the backend service to proxy requests to.
  • PORT (optional): The port on which the proxy server will listen. Defaults to 8080.

Running Locally

  1. Set the BACKEND_URL environment variable:

    export BACKEND_URL=https://your-backend-service.com
  2. Run the proxy:

    go run main.go

    The proxy will start on port 8080 (or the port specified by the PORT environment variable).

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages