Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

mainroot / ops / git / systemd / git-mirror.service

1.1 KiB · Raw · Log

# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
# SPDX-License-Identifier: AGPL-3.0-or-later

[Unit]
Description=Mirror the public repositories of Progmasoft from GitHub for git.progmasoft.com
Wants=network-online.target
After=network-online.target

[Service]
Type=oneshot
User=gitmirror
Group=gitmirror
ExecStart=/usr/local/libexec/git-mirror
Nice=10
IOSchedulingClass=idle
TimeoutStartSec=15min

# It reads public repositories over HTTPS and writes only the mirrors.
NoNewPrivileges=yes
ProtectSystem=strict
ReadWritePaths=/srv/git/mirrors
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
ProtectClock=yes
ProtectHostname=yes
ProtectProc=invisible
ProcSubset=pid
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources
CapabilityBoundingSet=
AmbientCapabilities=
UMask=0022