feat: add unified API proxy layer, debug endpoint, and systemd service for node-guardian

This commit is contained in:
Apple
2025-12-01 03:43:06 -08:00
parent b3e3c6417d
commit 1a81cf75f1
3 changed files with 150 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
[Unit]
Description=DAARION Node Guardian Loop
After=network.target docker.service
Requires=docker.service
[Service]
Type=simple
WorkingDirectory=/opt/microdao-daarion
ExecStart=/usr/bin/python3 /opt/microdao-daarion/scripts/node-guardian-loop.py --node-id=node-1-hetzner-gex44
Restart=always
RestartSec=10
Environment=CITY_API_URL=http://localhost:7001
Environment=SWAPPER_URL=http://localhost:8890
Environment=PYTHONUNBUFFERED=1
# Logging
StandardOutput=journal
StandardError=journal
SyslogIdentifier=node-guardian
[Install]
WantedBy=multi-user.target