go-proxy-example

command module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2022 License: MIT Imports: 6 Imported by: 0

README

This example shows a simple way to separate backend and frontend within the same domain using 3 servers:

All requests are received by the proxy, and it will forward them to one server or another depending on the route prefix. In this case, requests whose path begins with "/api" are sent to the backend server, and the rest to the frontend server.

This architecture is intended to be deployed in a secure network, such as Heroku, which only exposes a single port and encrypts all connections to the outside.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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