Get HTTP request -> wakeonlan a mac address -> redirect HTTP request
4.0K
Source: https://github.com/waaman/Proxy-Wol-Redirect
This image provides PWR, a way to wake up machine hosting web services before requesting those services.
You need to run this container on "host" mode for correctly sending the magic packet.
Environnement Variables
SERVER_PORT
The listening port waiting the initial HTTP request
TIMEOUT
Delay before timeout
MAC
The target MAC Address of the target machine
REDIRECT
The redirect URL when machine is awake.
SSL_VERIFY
To accept all ssl certificate without verification set this environment variable to "False". Usefull for self signed certificate - thx sjung87.
docker run -d \
--name pwr \
--restart unless-stopped \
-e TZ=Europe/Paris \
-e SERVER_PORT=8565 \
-e TIMEOUT=120 \
-e MAC=52:54:00:42:35:5C \
-e REDIRECT=http://your.awaken.service \
-e SSL_VERIFY=False \
--network host \
waaman/proxy-wol-redirect:latest
USAGE
As an example:
docker run -d \
--name pwr \
--restart unless-stopped \
-e TZ=Europe/Paris \
-e SERVER_PORT=8565 \
-e TIMEOUT=120 \
-e MAC=52:54:00:42:35:5C \
-e REDIRECT=http://your.awaken.service \
--network host \
waaman/proxy-wol-redirect:latest
USAGE
As an example:
Result:
When i go to http://192.168.1.40:8565:
Content type
Image
Digest
sha256:d73bb3943…
Size
50.9 MB
Last updated
about 3 years ago
docker pull waaman/proxy-wol-redirect