Go Basic Reverse Proxy Example
GBRPE (Go Basic Reverse Proxy Example) is a very small Golang application acting as a reverse proxy.
The code was presented during during a talk at FOSDEM 2019:"How to write a reverse proxy with Go in 25 minutes" by Julien Salleyron, Distinguished Engineer at Traefik Labs (ex-Containous)
Quick Start
The fastest way to start with GBRPE is the Gitpod-hosted version. When you're ready, you can install locally or host yourself.
One-click deploy sample URL Shortener application sample with GBRPE using Gitpod
Installation
Download the code with git to use GBRPE.
git clone https://github.com/davidaparicio/go-reverse-proxy.git
cd
Requirements
Before the 1st run, generate self-signed SSL certificates for the HTTP2.
./generate_certs.sh
Testing
go run main.go
curl -ki https://localhost:8080
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT
I used examples from the talks & materials
- FOSDEM2019 - How to write a reverse proxy with Go in 25 minutes by Julien Salleyron;
- GoLab2018 - Building a DIY proxy with the net package by Filippo Valsorda;