The ideal Linux terminal server has finally come true.
It is called X2Go, and it's open source and free. It's based on the NX protocol and works great, with Windows/Mac/Linux clients.
sudo apt-get install -y supervisor
Let's create a configuration for it called
webhooks.conf. This file will be created at
[program:nodehook] command=/usr/bin/node /srv/http.js directory=/srv autostart=true autorestart=true startretries=3 stderr_logfile=/var/log/webhook/nodehook.err.log stdout_logfile=/var/log/webhook/nodehook.out.log user=www-data environment=SECRET_PASSPHRASE='this is secret',SECRET_TWO='another secret'
supervisorctl reread supervisorctl update
echo -n "hello" | socat - udp-datagram:192.168.1.255:8080,broadcast