# ───────────────────────────────────────────── # SPB Git — Personal Git Platform # ───────────────────────────────────────────── # Author : Simon-Pierre Boucher # Contact : contact@spboucher.ai # File : deploy/spbgit.service # Purpose : systemd unit — documented alternative to pm2 (Linux hosts) # License : MIT © Simon-Pierre Boucher # ───────────────────────────────────────────── # # Install: # sudo cp deploy/spbgit.service /etc/systemd/system/spbgit.service # sudo systemctl daemon-reload # sudo systemctl enable --now spbgit # [Unit] Description=SPB Git — personal git platform (git.spboucher.ai) After=network-online.target Wants=network-online.target [Service] Type=simple User=simon-pierreboucher WorkingDirectory=/srv/spbgit/app ExecStart=/usr/bin/env node src/server.mjs Restart=always RestartSec=3 Environment=NODE_ENV=production # Paths default to /srv/git + /srv/spbgit/{data,cache} via src/config.mjs NoNewPrivileges=true PrivateTmp=true ProtectSystem=full ReadWritePaths=/srv/git /srv/spbgit [Install] WantedBy=multi-user.target