Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nginx: Fix accidental load-balancing between IPv4 and IPv6.
Apparently, our nginx configuration's use of "localhost", combined with the default in modern Linux of having localhost resolve to both the IPv4 and IPv6 addresses on a given machine, resulted in `nginx` load-balancing requests to a given Zulip server between the IPv4 and IPv6 addresses. This, in turn, resulted in irrelevant 502 errors problems every few minutes on the /events endpoints for some clients. Disabling IPv6 on the server resolved the problem, as does simply spelling localhost as 127.0.0.1 for the `nginx` upstreams that we declare for proxying to non-Django services on localhost.
- Loading branch information