The merge of add-backend-api into main committed unresolved conflicts
and corrupted uploads; the API could not import on main.
- backend/app/settings.py, deploy/backup-dashboard-api.service,
collectors/veeam/README.md: remove conflict markers, restoring the
add-backend-api versions
- backend/app/__init__.py, backend/tests/__init__.py: were 1024 null
bytes ("source code string cannot contain null bytes"); now empty
- Remove the accidental Backup-Dashboard gitlink at the repo root and a
duplicate collectors/veeam/MockVeeam.ps1 (identical to tests/)
- Restore the 60-minute collector interval from 17ee303, which the
merge reverted to 15, and update the docs to match
Co-Authored-By: Claude Opus 5.5 <[email protected]>
24 lines
768 B
Desktop File
24 lines
768 B
Desktop File
[Unit]
|
|
Description=Backup Dashboard API
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=backupdash
|
|
Group=backupdash
|
|
WorkingDirectory=/opt/backup-dashboard/backend
|
|
# Settings live in this file so manage.py reads exactly the same ones (see deploy/backup-dashboard.env)
|
|
EnvironmentFile=/etc/backup-dashboard/backup-dashboard.env
|
|
# Bound to localhost: only nginx can reach it, so nginx's auth can't be bypassed from outside.
|
|
# One worker is plenty at this scale and keeps SQLite writes simple.
|
|
ExecStart=/opt/backup-dashboard/venv/bin/uvicorn --factory app.main:create_app --host 127.0.0.1 --port 8000 --proxy-headers
|
|
Restart=on-failure
|
|
|
|
StateDirectory=backup-dashboard
|
|
NoNewPrivileges=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|