forem / selfhost

Selfhost your Forem Community on your own infrastructure 🎉
https://www.forem.com/get-started/
GNU Affero General Public License v3.0
1.44k stars 172 forks source link

Use AWS to retrieve IPv4 IP #16

Closed andygeorge closed 3 years ago

andygeorge commented 3 years ago

Closes #7

The checkip.amazonaws.com domain should only return an IPv4 public WAN address:

~ $ curl -4 "https://checkip.amazonaws.com/"
75.XXX.XXX.XXX
~ $ curl -6 "https://checkip.amazonaws.com/"
curl: (6) Could not resolve host: checkip.amazonaws.com