summaryrefslogtreecommitdiffstats
path: root/roles/git/files/etc/systemd/system/cgit.service
blob: 08037ac251281d9c3cd127cded46b56e3185005a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=hyperfast web frontend for git repositories written in C
Documentation=https://git.zx2c4.com/cgit/

[Service]
User=_cgit
Group=nogroup
SupplementaryGroups=gitolite
ExecStart=/usr/sbin/fcgiwrap
SyslogIdentifier=cgit
#
# Hardening
NoNewPrivileges=yes
PrivateDevices=yes
ProtectHome=yes
ProtectSystem=strict
ProtectControlGroups=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ReadWriteDirectories=/var/cache/cgit

[Install]
WantedBy=multi-user.target