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.
This commit is contained in:
Tristan Daniël Maat 2021-05-14 12:21:20 +01:00
parent 7ba4a8992c
commit 4c05f0767f
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -61,7 +61,7 @@
{ {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { proxyPass = "http://localhost:${toString port}"; }; locations."/" = { proxyPass = "http://127.0.0.1:${toString port}"; };
} // extra; } // extra;
in { in {
"tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; }; "tlater.net" = host 3002 { serverAliases = [ "www.tlater.net" ]; };