Files
proxmox/config/systemd/sankofa-it-read-api.service.example

28 lines
973 B
Plaintext
Raw Normal View History

# Example systemd unit — IT inventory read API (Phase 0 stub).
# Copy to /etc/systemd/system/sankofa-it-read-api.service, adjust paths and User=.
#
# sudo cp config/systemd/sankofa-it-read-api.service.example /etc/systemd/system/sankofa-it-read-api.service
# sudo systemctl daemon-reload && sudo systemctl enable --now sankofa-it-read-api
#
[Unit]
Description=Sankofa IT read API (live inventory JSON)
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/proxmox
# Production pattern (see scripts/deployment/bootstrap-sankofa-it-read-api-lan.sh):
EnvironmentFile=-/etc/sankofa-it-read-api.env
# Or inline (dev):
# Environment=IT_READ_API_HOST=127.0.0.1
# Environment=IT_READ_API_PORT=8787
# Environment=IT_READ_API_KEY=change-me
# Optional: IT_READ_API_CORS_ORIGINS=https://portal.sankofa.nexus
ExecStart=/usr/bin/python3 /opt/proxmox/services/sankofa-it-read-api/server.py
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target