spb/spbgit Public MIT
SPB Git — the platform hosting itself
JavaScript 73.9%
CSS 11.7%
Nunjucks 11.6%
Shell 2.7%
1# ─────────────────────────────────────────────2# SPB Git — Personal Git Platform3# ─────────────────────────────────────────────4# Author : Simon-Pierre Boucher5# Contact : contact@spboucher.ai6# File : deploy/spbgit.service7# Purpose : systemd unit — documented alternative to pm2 (Linux hosts)8# License : MIT © Simon-Pierre Boucher9# ─────────────────────────────────────────────10#11# Install:12# sudo cp deploy/spbgit.service /etc/systemd/system/spbgit.service13# sudo systemctl daemon-reload14# sudo systemctl enable --now spbgit15#16[Unit]17Description=SPB Git — personal git platform (git.spboucher.ai)18After=network-online.target19Wants=network-online.target2021[Service]22Type=simple23User=simon-pierreboucher24WorkingDirectory=/srv/spbgit/app25ExecStart=/usr/bin/env node src/server.mjs26Restart=always27RestartSec=328Environment=NODE_ENV=production29# Paths default to /srv/git + /srv/spbgit/{data,cache} via src/config.mjs30NoNewPrivileges=true31PrivateTmp=true32ProtectSystem=full33ReadWritePaths=/srv/git /srv/spbgit3435[Install]36WantedBy=multi-user.target37