[Unit]
Description=CVE Dashboard Backend (Express API)
After=network.target

[Service]
Type=simple
WorkingDirectory=/home/cve-dashboard/backend
ExecStart=/usr/bin/node server.js
Restart=on-failure
RestartSec=5
EnvironmentFile=/home/cve-dashboard/backend/.env
StandardOutput=append:/home/cve-dashboard/backend/backend.log
StandardError=append:/home/cve-dashboard/backend/backend.log

[Install]
WantedBy=multi-user.target
