feat: add unified API proxy layer, debug endpoint, and systemd service for node-guardian
This commit is contained in:
23
scripts/node-guardian.service
Normal file
23
scripts/node-guardian.service
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user