From: Jason Francis Date: Thu, 14 May 2020 18:45:54 +0000 (-0400) Subject: fix tls-alpn-01 configuration example X-Git-Tag: v0.7.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fjsonsh;p=thirdparty%2Fdehydrated.git fix tls-alpn-01 configuration example --- 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; } } ```