pelias / pip-service

Pelias point-in-polygon-service
https://pelias.io
MIT License
16 stars 18 forks source link

Add host address env var override and update README #127

Closed vicchi closed 4 years ago

vicchi commented 4 years ago

Here's the reason for this change :rocket:


Here's how others can test the changes :eyes:

Without HOST defined ...

PORT=4100 npm start
<snip>
2020-07-16T15:29:14.509Z - info: [placeholder] [worker 92474] listening on 0.0.0.0:4100
sudo lsof -i -P -n | grep LISTEN | grep 4100
node      92601          pelias   36u  IPv6 513692      0t0  TCP *:4100 (LISTEN)

With HOST defined ...

HOST=127.0.0.1 PORT=4100 npm start
<snip>
2020-07-16T15:31:23.397Z - info: [placeholder] [worker 92745] listening on 127.0.0.1:4100
$ sudo lsof -i -P -n | grep LISTEN | grep 4100
node      92737          pelias   36u  IPv4 501663      0t0  TCP 127.0.0.1:4100 (LISTEN)
orangejulius commented 4 years ago

Sweet. I'm sure lots of folks will appreciate having this configurable everywhere!