Reception

Reverse Proxy Lab

Guides to reverse proxies and TLS for home servers.

One door, one desk, many rooms. In this example, one HTTPS reverse proxy handles TLS on port 443 and forwards each configured HTTP hostname to its app.

Illustration: a hotel front desk standing in for a reverse proxy Three guests come in through one door marked 443. The concierge reads each name card and checks the register, which lists photos.example.com for room 2283 and wiki.example.com for room 3000. Those two guests each get a sealed envelope and are shown to their rooms. nas.example.com is not listed and is turned back. :443 REGISTER photos.example.com :2283 wiki.example.com :3000 nas.example.com not listed RECEPTION :2283 :3000 :8080 No such room photos wiki nas
  • photos.example.com room :2283
  • wiki.example.com room :3000
  • nas.example.com not listed in the register, turned back

Illustration: one door on port 443, one desk. The envelope is the TLS certificate; each room is a different upstream port. This example rejects unlisted names.

Guides in the register
0
Latest arrival
Not yet
Built from
Published documentation
Testing
None, documentary

Room keys

The first guides are being prepared. Until then, the proxy block generator is open.

The concierge's desk

Write a proxy block

Type a hostname and the address and port your app listens on. The desk fills in a Caddyfile site block and an nginx server block from two fixed templates, ready to copy and check against the docs.

Open the generator
photos.example.com {
	reverse_proxy 192.168.1.20:2283
}
Example Caddyfile using a placeholder hostname, LAN address and upstream port.