From 222e92c1790402cc5b5ec8a3c7e663cd5d27a41d Mon Sep 17 00:00:00 2001 From: Marcel Ludwig Date: Fri, 25 Nov 2022 12:44:41 +0100 Subject: [PATCH] Update backend_tls.md add example snippet --- .../2.configuration/4.block/backend_tls.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/website/content/2.configuration/4.block/backend_tls.md b/docs/website/content/2.configuration/4.block/backend_tls.md index b55b09ee9..38c85b37b 100644 --- a/docs/website/content/2.configuration/4.block/backend_tls.md +++ b/docs/website/content/2.configuration/4.block/backend_tls.md @@ -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: [