]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
fix tls-alpn-01 configuration example jsonsh
authorJason Francis <jason@cycles.network>
Thu, 14 May 2020 18:45:54 +0000 (14:45 -0400)
committerLukas Schauer <lukas@schauer.so>
Sun, 5 Jul 2020 20:30:38 +0000 (22:30 +0200)
docs/tls-alpn.md

index 8b7e90ef59a2c74f8265e17e94a2cb39c1eab3eb..bca54f9306948b24231a7220ac8e2af2961d6e3e 100644 (file)
@@ -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;
   }
 }
 ```