From 42a0fc9a5edf5b062df7fcc00db7bb790c478e34 Mon Sep 17 00:00:00 2001 From: Jason Francis Date: Thu, 14 May 2020 14:45:54 -0400 Subject: [PATCH] fix tls-alpn-01 configuration example --- docs/tls-alpn.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/tls-alpn.md b/docs/tls-alpn.md index 8b7e90e..bca54f9 100644 --- a/docs/tls-alpn.md +++ b/docs/tls-alpn.md @@ -15,18 +15,16 @@ Your config should look something like this: ```nginx stream { + map $ssl_preread_alpn_protocols $tls_port { + ~\bacme-tls/1\b 10443; + default 443; + } + server { - map $ssl_preread_alpn_protocols $tls_port { - ~\bacme-tls/1\b 10443; - default 443; - } - - server { - listen 443; - listen [::]:443; - proxy_pass 10.13.37.42:$tls_port; - ssl_preread on; - } + listen 443; + listen [::]:443; + proxy_pass 10.13.37.42:$tls_port; + ssl_preread on; } } ``` -- 2.47.2