Skip to content

lopz82/reverse-proxy

Repository files navigation

About The Project

This repository contains a very basic example of a configurable reverse proxy made with go.

Getting Started

Prerequisites

You will need Docker and Docker compose.

Installation

The configuration file it is self-explanatory and includes all possible options.

config:
  proxy address: "0.0.0.0:9090"

routes:
  /redirect:
    strategy: roundrobin
    root: true
    servers:
      - http://backend01:80
      - http://backend02:80
  /nginx:
    strategy: random
    root: false
    servers:
      - http://backend01:80
      - http://backend02:80
      - http://backend03:80

Usage

The repository includes a working example which includes a basic config.yml.

$ git clone https://github.com/lopz82/reverse-proxy.git
$ cd reverse-proxy
$ docker-compose up 

License

Distributed under the MIT License. See LICENSE for more information.

About

A basic configurable reverse proxy made with Go.

Resources

License

Stars

Watchers

Forks

Contributors