Checks public WAN IP every 5 minutes via systemd timer. On change: - Updates A-records via DirectAdmin API (login key auth) - Sends WhatsApp notification via wwebjs-api
12 lines
358 B
Desktop File
12 lines
358 B
Desktop File
[Unit]
|
|
Description=WAN IP Guard - Dynamic DNS updater
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# Change 'your-user' and paths to match your setup
|
|
User=your-user
|
|
EnvironmentFile=/home/your-user/wan-ip-guard/.env
|
|
WorkingDirectory=/home/your-user/wan-ip-guard
|
|
ExecStart=/usr/bin/node /home/your-user/wan-ip-guard/index.js
|