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:
parent
7ba4a8992c
commit
4c05f0767f
|
@ -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" ]; };
|
||||||
|
|
Loading…
Reference in a new issue