From 547c01f481ff20ea4d74678d11fe4f86440e9f30 Mon Sep 17 00:00:00 2001 From: Melvin Snijders <25155102+MelvinSnijders@users.noreply.github.com> Date: Fri, 3 Feb 2023 14:43:13 +0100 Subject: [PATCH] website/docs: update Caddy docs to include HTTPS proxying (#4316) Update Caddy documentation to include HTTPS proxying Signed-off-by: Melvin Snijders --- website/docs/providers/proxy/_caddy_standalone.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/docs/providers/proxy/_caddy_standalone.md b/website/docs/providers/proxy/_caddy_standalone.md index bb9cb7e3a..4676fa656 100644 --- a/website/docs/providers/proxy/_caddy_standalone.md +++ b/website/docs/providers/proxy/_caddy_standalone.md @@ -20,3 +20,11 @@ app.company { reverse_proxy localhost:1234 } ``` + +If you're trying to proxy to an upstream over HTTPS, you need to set the `Host` header to the value they expect for it to work correctly. + +``` +reverse_proxy /outpost.goauthentik.io/* https://outpost.company { + header_up Host {http.reverse_proxy.upstream.hostport} +} +```