There are also webuis that can do this for you https://github.com/sameerdhoot/wolweb
https://serverfault.com/questions/948283/from-nginx-wake-ano...
And Caddy using a plugin
https://github.com/dulli/caddy-wol
Reply on news.ycombinator.com