Open fiveangle opened 3 years ago
Would be great indeed.
I have found this for now but this is a fork of nginx if I understood correctly: https://serverfault.com/a/948285
Maybe it give some help
Issue is now considered stale. If you want to keep it open, please comment :+1:
Bump
In the Streams interface, NPM allows access at an incoming port to be proxied to an internal host:port. For hosts that may be in an ACPI suspended state, the stream access will fail. An ideal solution would be to implement a "Send Wake-on-LAN packet" toggle within the Stream setup dialog. As NPM would only be able to know what the MAC address for the target device is if the target IP is active when setting up the Stream, NPM would either have to only allow enabling the toggle if the IP address is active during setup, or optionally, could include a field for the user to enter the MAC address directly. Either way (or both) would be plenty sufficient I think.
Variations that could be implemented are a set additional delay before responding to the client with the stream connection (which may allow a bit of time for the software on the WOL machine to fully resume operation, but I don't know if this will even be necessary - perhaps not).
This feature would allow those of us with media servers to script these systems to go to sleep when there are no active clients connected for a certain period, then resume operation upon client access.
I think this new feature would be a huge hit for Plex and other media server users ❤️
Regardless, I'm loving what you've put together here with NPM !