Files
dashcaddy/dashcaddy-api/pylon/dashcaddy-pylon.service
Sami fc6275a96b feat: add Pylon health relay for remote service health checks
DashCaddy Pylon is a lightweight probe agent that runs on remote
networks to relay health checks for services the main DashCaddy
instance can't reach directly (e.g., .sami domains, LAN IPs).

- Standalone zero-dependency Node.js script (pylon/dashcaddy-pylon.js)
- Optional API key auth, HEAD→GET fallback, batch probe support
- Health routes now try direct check first, fall back to pylon relay
- New endpoints: /health/probe (act as pylon), /health/pylon (status)
- Config: add "pylon": { "url": "...", "key": "..." } to config.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-23 15:52:43 -07:00

20 lines
459 B
Desktop File

[Unit]
Description=DashCaddy Pylon — Health Check Relay
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/node /opt/dashcaddy-pylon/dashcaddy-pylon.js
Restart=always
RestartSec=5
Environment=PYLON_PORT=3002
Environment=PYLON_NAME=%H
# Uncomment and set a shared key for authentication:
#Environment=PYLON_KEY=your-shared-secret
StandardOutput=journal
StandardError=journal
SyslogIdentifier=dashcaddy-pylon
[Install]
WantedBy=multi-user.target