2 Description=git web server
3 Documentation=man:gitweb(1) man:gitweb.conf(5)
6 ExecStart=/usr/local/bin/gitweb.cgi --fastcgi
7 # gitweb kills itself every 100 requests or so, expects to be restarted externally
9 # place the socket in the bind-mounted directory that’s also bind-mounted into nginx’ container
10 Environment=FCGI_SOCKET_PATH=/gitweb-socket/gitweb
12 Environment=LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
13 # don’t run gitweb as root
15 # allow web server to read the socket by making it world-accessible
18 # sandboxing options, see systemd.exec(5)
25 ReadWritePaths=/gitweb-socket/
26 SystemCallArchitectures=native
28 ProtectControlGroups=yes
29 ProtectKernelModules=yes
32 WantedBy=multi-user.target