summaryrefslogtreecommitdiffstats
path: root/roles/git/files/etc/systemd/system/git-http-backend.socket
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-05-16 20:33:52 +0200
committerGuilhem Moulin <guilhem@fripost.org>2020-05-16 20:39:53 +0200
commit70f16ac939497e3e424bad05c5f82ce36d1bceda (patch)
tree652974ea391732358e1605623a35198addc11d71 /roles/git/files/etc/systemd/system/git-http-backend.socket
parent2f9574850b356a746ee3ff9a8a311c450784b53c (diff)
git browser and HTTP backend: harden config and port to Debian 10.
Diffstat (limited to 'roles/git/files/etc/systemd/system/git-http-backend.socket')
-rw-r--r--roles/git/files/etc/systemd/system/git-http-backend.socket11
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/git/files/etc/systemd/system/git-http-backend.socket b/roles/git/files/etc/systemd/system/git-http-backend.socket
new file mode 100644
index 0000000..c2820d4
--- /dev/null
+++ b/roles/git/files/etc/systemd/system/git-http-backend.socket
@@ -0,0 +1,11 @@
+[Unit]
+Description=Git HTTP backend
+Documentation=man:git-http-backend(1)
+
+[Socket]
+ListenStream=%t/git-http-backend.socket
+SocketUser=www-data
+SocketMode=0600
+
+[Install]
+WantedBy=sockets.target