From: Jakub Czajka Date: Mon, 26 Dec 2022 20:31:49 +0000 (+0100) Subject: [git] Serve repositories with gitweb. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=30510f5ab5a83b6a583d9e22e9b3184285ec0aad;p=server.git [git] Serve repositories with gitweb. --- diff --git a/git/README b/git/README index b69e9cb..1704abc 100644 --- a/git/README +++ b/git/README @@ -1,6 +1,38 @@ git === +DNS +--- + +Set up and git.. + + A + AAAA +git. CNAME + +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 +$ git init --bare +``` + +Put repositories under `/srv/git` and change ownership. + +``` +$ chgrp -R www-data /srv/git +```