From 5d3717dfb4686ee3b1c47c4320d2000b8b205d64 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 25 Sep 2019 21:26:29 +0900 Subject: [PATCH] add lektor to IPv6 enabled apps --- .../contents.lr | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr b/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr index 42074ea..f8be42f 100644 --- a/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr +++ b/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr @@ -17,7 +17,7 @@ various applications. ## nginx -The web server nginx by default only listens to IPv4 if you use +The web server [nginx](https://nginx.org/) by default only listens to IPv4 if you use the standard `listen *:80;` directive. To enable IPv6, use `listen [::]:80;`. So for a dual stack server, your configuration could look as follows: @@ -36,7 +36,8 @@ server { ## haproxy -There are various interesting configuration options in HAProxy related +There are various interesting configuration options in +[HAProxy](https://www.haproxy.org/) related to IPv6. Let's have a look at each of them! To enable IPv6 transport for the local logging, use `log [::1]` in the @@ -97,6 +98,19 @@ backend httpsipv6 server twitter.com ipv4@twitter.com ``` +## Lektor + +The static CMS lektor by default serves on IPv4. To serve on IPv6 +localhost use `-h ::1`, to be globally reachable use `-h ::`. + +``` +# Serve on IPv6 localhost +% lektor serve -h ::1 + +# Serve on IPv6 (globally reachable) +% lektor serve -h :: +``` + ## Other applications