Skip to content

Commit

Permalink
Update backend_tls.md
Browse files Browse the repository at this point in the history
add example snippet
  • Loading branch information
Marcel Ludwig committed Nov 25, 2022
1 parent 824446f commit 222e92c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/website/content/2.configuration/4.block/backend_tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ However, this `tls` block allows a more specific pool configuration per backend
Additionally the `client_certificate`(or `client_certificate_file`) and `client_private_key` (or `client_private_key_file`)
attributes allow the backend to present certificate and key during a TLS handshake to an origin which requires them due to an mTLS setup.

#### Example

```hcl
backend "secured" {
origin = "https://localhost"
tls {
server_ca_certificate_file = "rootCA.crt"
# optional
client_certificate_file = "client.crt"
client_private_key_file = "client.key"
}
}
```

::attributes
---
values: [
Expand Down

0 comments on commit 222e92c

Please sign in to comment.