blob: 1e07bd0e3d64d337c49a9003523f578ff8d6f0e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# SPDX-FileCopyrightText: 2026 Progmasoft <support@progmasoft.com>
# SPDX-License-Identifier: AGPL-3.0-or-later WITH AdditionRef-Progmasoft-Patent-Grant-1.1
[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
|