repositorypackage
0.0.0-20240718101343-ee577abeb13d
Repository: https://github.com/awarero/ipecho.git
Documentation: pkg.go.dev
# README
ipecho
Simple micro service returning the caller's IP over http (intended for dynamic dns use cases). An example DynDNS client can be found here: https://github.com/AwareRO/owndyndns.
build
go build ipecho.go
configure
# edit backend.toml.sample
mkdir /etc/ipecho
cp backend.toml.sample /etc/ipecho/backend.toml
run
./ipecho [custom-config.toml]
deploy
# build
cp ipecho /usr/bin
cp ipecho.service /etc/systemd/system
systemctl daemon-reload
systemctl enable ipecho
systemctl start ipecho
logs (when running via systemd)
journalctl -f -u ipecho