/tinyrp

TinyRP is a simple lightweight HTTP reverse proxy made in golang

Primary LanguageGo

TinyRP - Simple lightweight HTTP proxy

  _   _             ____  ____
  | |_(_)_ __  _   _|  _ \|  _ \
  | __| | '_ \| | | | |_) | |_) |
  | |_| | | | | |_| |  _ <|  __/
  \__|_|_| |_|\__, |_| \_\_|
              |___/        

TinyRP is a simple lightweight HTTP reverse proxy made in golang

Feature

  • Reverse proxy

Usage

  1. Create a config file in this format
resources:
  - name: Server1
    endpoint: /server1
    destination_url: "http://localhost:9001"
  - name: Server2
    endpoint: /server2
    destination_url: "http://localhost:9002"
  - name: Server3
    endpoint: /server3
    destination_url: "http://localhost:9003"

usage

The below command will run three demo services server1, server2 and server3

$ make run-containers
$ make run-proxy-server

Requirement

  1. Docker