From 18b01ec718e5ebc9d8da877a72f2fc7007be9789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 20 Feb 2021 18:17:21 +0100 Subject: [PATCH] Make kvmd webui available via IPv6 nginx only binds an IPv4 socket, if the listen option is specified without [::]. There are two possibilites to fix this issue. Either the listen option can be specified using only [::], and additionally including ipv6only=off. This makes nginx bind an IPv6 socket which is also able to handle IPv4 connections. Or the listen option can be specified twice, one with [::] and one without. This makes nginx bind two independent sockets. If the first option is chosen, IPv4 addresses are mapped into the IPv6 address space, which might break scripts, filters, etc. So, for now, the second option is chosen. --- configs/nginx/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/nginx/nginx.conf b/configs/nginx/nginx.conf index 19e839b4..71775387 100644 --- a/configs/nginx/nginx.conf +++ b/configs/nginx/nginx.conf @@ -38,12 +38,14 @@ http { #PROD server { #PROD listen 80; +#PROD listen [::]:80; #PROD server_name localhost; #PROD return 301 https://$host$request_uri; #PROD } server { #PROD listen 443 ssl http2; +#PROD listen [::]:443 ssl http2; server_name localhost; #PROD include /etc/kvmd/nginx/ssl.conf;