{"repo":"dulli/caddy-wol","free":true,"listed":false,"github":"https://github.com/dulli/caddy-wol","clone":"git clone https://github.com/dulli/caddy-wol.git","description":"Caddy plugin that sends wake-on-lan magic packets to remote hosts to wake up e.g. reverse proxy targets.","language":"Go","stars":66,"topics":["caddy","caddy-module","caddy-plugin","caddy2","caddyfile","caddyserver","home-automation","homelab","nas","reverse-proxy"],"license":"Apache-2.0","category":"networking-infra","readme_excerpt":"Automated Wake-on-Lan for Caddy caddy-wol is a Caddy plugin that sends wake-on-lan magic packets to remote hosts to wake up e.g. reverse proxy targets when they can not be reached. Installation To add this module to your Caddy configuration, run the following xcaddy command: Usage The plugin implements a minimal HTTP handler directive that simply dispatches a WOL magic packet and then passes the request through unchanged to the next handler which may return a response to the client: As with any such directive, you have to tell Caddy where to put in the execution order of all directives. This is done with a global configuration directive in your Caddyfile : Internally, the magic packets are throttled to be sent at most once every 10 minutes per remote host, even if more frequent requests arrive at the server, as sending the packet once is of course enough to wake up the remote host. Example Configuration One possible example use case is to reverse proxy requests to e.g. a NAS (using the IP 192.168.0.100 and MAC address 00:11:22:33:44:55 ) on which a media server like Jellyfin is running (at port :8096 ). If the NAS is shut down when not in use to save energy, we want it to automatically boot up again, when somebody needs it again. To do so, we first issue a standard reverse proxy directive and then register an error handler that is called when this proxy request goes unanswered because the target is not reachable. It then calls the caddy-wol plugin to wake up the NAS and re-is","default_branch":null,"files":null,"tree":[],"storefront":"/r/dulli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dulli/caddy-wol/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}