SPB Git forge

spb/spbgit

Public MIT ★ Pinned

SPB Git — the platform hosting itself

15commits 1branches 1releases
833.0 KBsize
maindefault branch
17 days agolast push
JavaScript 67.4% CSS 16.7% Nunjucks 13.7% Shell 2.3%
1.3 KB · 37 lines ini
Raw Blame History
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