Poor Man’s Dynamic DNS service (sloppy version)

root@server:~# crontab -l
*/10 * * * * /root/bin/clients.sh


root@server:~# cat /root/bin/clients.sh
#!/bin/sh
cat /var/log/openvpn_home.status | grep ^CLIENT_LIST | cut -f 2-3 > /var/www/clients.txt
chown www:www /var/www/clients.txt


root@server:~# cat /etc/nginx/nginx.conf
...
location /clients.txt {
    root /var/www;
    auth_basic "...";
    auth_basic_user_file ...;
}
...
Poor Man’s Dynamic DNS service (sloppy version)