From 4c05f0767f6db8df52b124683d10d228dcfa0852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Fri, 14 May 2021 12:21:20 +0100 Subject: [PATCH] nginx: Don't look up localhost via DNS This results in occasional failure to resolve proxies because it turns into [::1] for IPv6 reasons. We hard-code the IPv4 address since the containers don't currently support IPv6. --- configuration/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/default.nix b/configuration/default.nix index bbc0205..73ae1a3 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -61,7 +61,7 @@ { forceSSL = true; enableACME = true; - locations."/" = { proxyPass = "http://localhost:${toString port}"; }; + locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; }; } // extra; in { "tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; };