]> git.ekhem.eu.org Git - server.git/commitdiff
[git] Serve repositories with gitweb.
authorJakub Czajka <jakub@ekhem.eu.org>
Mon, 26 Dec 2022 20:31:49 +0000 (21:31 +0100)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 3 Dec 2023 21:03:23 +0000 (22:03 +0100)
git/README

index b69e9cba9ebc4e126f2a3eaff97ff7a916e15403..1704abcf4a707969b085845908f0e9f39564cae2 100644 (file)
@@ -1,6 +1,38 @@
 git
 ===
 
+DNS
+---
+
+Set up <domain> and git.<domain>.
+
+<domain>        A     <IPv4 address>
+<domain>        AAAA  <IPv6 address>
+git.<domain>    CNAME <domain>
+
+SSL
+---
+
+Obtain a certificate with `certbot-nginx`.
+
+Install
+-------
+
+Install packages.
+
+```
+$ apt install fcgiwrap gitweb
+```
+
+Start services.
+
+```
+$ systemctl start fcgiwrap
+```
+
+Notes
+-----
+
 Create a new user.
 
 ```
@@ -28,3 +60,14 @@ $ passwd --lock git
 ```
 
 Create new bare repository.
+
+```
+$ mkdir <repository>
+$ git init --bare <repository>
+```
+
+Put repositories under `/srv/git` and change ownership.
+
+```
+$ chgrp -R www-data /srv/git
+```