opensanctions / yente

API for OpenSanctions with support for entity search and bulk matching of data collections. Supports Reconciliation API spec.
https://www.opensanctions.org/docs/yente/
MIT License
71 stars 29 forks source link

Allow passing custom HOST through an env var. #555

Closed lbrito1 closed 5 days ago

lbrito1 commented 5 days ago

Currently the sever is hardcoded to listen at IPv4 only (0.0.0.0); this is a problem when running on certain infrastructure such as Fly.io, where the default private network is IPv6-only. By allowing users to pass a custom HOST, they can pass "::" to use IPv6.

pudo commented 5 days ago

Very nice patch, appreciate it!