Missing inet/inet6 configuration
Hi,
The backend is not working on a Linux host where IPV6 has been disabled (ipv6.disable=1):
[error] <0.3797.0> Failed to start Ranch listener 'Elixir.ExBackendWeb.Endpoint.HTTP' in ranch_tcp:listen([{cacerts,'...'},{key,'...'},{cert,'...'},inet6,{port,8080}]) for reason eafnosupport (address family not supported by protocol family)
I think the root cause is https://gitlab.com/media-cloud-ai/backend/ex_backend/-/blame/master/lib/ex_backend_web/endpoint.ex#L84: inet6 has been hardcoded.
Is it possible to add an environment variable to add the capability to configure the listening protocol ?
Edited by Julien Huon