From 34a28cb40b9ad7c7c958c2aa7eed08ca46b65608 Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Mon, 9 Sep 2019 18:55:54 -0600 Subject: [PATCH] Bring reverse proxy docs up to speed --- v2:-Config-from-Scratch.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/v2:-Config-from-Scratch.md b/v2:-Config-from-Scratch.md index 2b83527..68bf062 100644 --- a/v2:-Config-from-Scratch.md +++ b/v2:-Config-from-Scratch.md @@ -72,7 +72,8 @@ And this is the same, but with automatic HTTPS (notice that we now serve on the The reason this particular config gets automatic HTTPS is because the host matcher informs Caddy which hostnames to manage certificates for. -The following is a simple http reverse proxy, with automatic https disabled: +The following is a simple HTTP reverse proxy, with automatic HTTPS disabled: + ```json { "apps": { @@ -88,7 +89,7 @@ The following is a simple http reverse proxy, with automatic https disabled: "handler": "reverse_proxy", "upstreams": [ { - "host": "http://localhost:8080" + "dial": "localhost:8080" } ] } @@ -101,7 +102,7 @@ The following is a simple http reverse proxy, with automatic https disabled: "handler": "reverse_proxy", "upstreams": [ { - "host": "http://localhost:3000" + "dial": "localhost:3000" } ] }