~bigbes/sr-ht-compare

ref: 9473e2606cd90cb8d3b78ee87511c671157439f4 sr-ht-compare/contrib/compare-srht.service -rw-r--r-- 582 bytes
9473e260 — bigbes gitx: repository access and ref-to-ref diffs on go-git a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=compare.sr.ht git diff/compare viewer
After=network.target

[Service]
Type=simple
# Runs as the git user so it has read access to the bare repositories under
# /var/lib/git. compare.sr.ht is stateless — no database or Redis dependency.
User=git
Restart=always
ExecStart=/usr/local/bin/comparesrht

# The service only ever reads: bare repos on disk and the shared config. It
# writes nothing, so lock the filesystem down.
ProtectSystem=strict
ProtectHome=true
ReadOnlyPaths=/var/lib/git
PrivateTmp=true
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target