website/docs: update Caddy docs to include HTTPS proxying (#4316)

Update Caddy documentation to include HTTPS proxying

Signed-off-by: Melvin Snijders <mail@melvinsnijders.nl>
This commit is contained in:
Melvin Snijders 2023-02-03 14:43:13 +01:00 committed by GitHub
parent fabb03ca69
commit 547c01f481
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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}
}
```