go-reverse-proxy

command module
v0.0.0-...-53145b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 10 Imported by: 0

README

Go Basic Reverse Proxy Example

Youtube video License Twitter contributions welcome Gitpod

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

Open in 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;

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL