From 565c937dcd76aca6269efeeb3db59b1be03ca6ca Mon Sep 17 00:00:00 2001 From: Ángel Castañeda Date: Sat, 7 Oct 2023 21:16:50 -0500 Subject: Fix cgit guide to use dir location from git guide /srv/git -> /var/git Did cgit guide when I was pretty new to self host stuff and never figured out why scanning or http cloning never worked. Eventually I stumbled into in, and I just wanna fix it for everyone. --- content/cgit.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content') diff --git a/content/cgit.md b/content/cgit.md index ce6214c..13d4b2b 100644 --- a/content/cgit.md +++ b/content/cgit.md @@ -53,8 +53,8 @@ server { fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend; fastcgi_param PATH_INFO $uri; fastcgi_param GIT_HTTP_EXPORT_ALL 1; - fastcgi_param GIT_PROJECT_ROOT /srv/git; - fastcgi_param HOME /srv/git; + fastcgi_param GIT_PROJECT_ROOT /var/git; + fastcgi_param HOME /var/git; fastcgi_pass unix:/run/fcgiwrap.socket; } @@ -90,11 +90,11 @@ root-title={{}}Chad's git server{{}} root-desc={{}}A web interface to LandChad's git repositories, powered by Cgit{{}} # The location where git repos are stored on the server -scan-path=/srv/git/ +scan-path=/var/git/ ``` This configuration assumes you followed the [git hosting guide](/git) -and store your repositories on the `/srv/git/` directory. +and store your repositories on the `/var/git/` directory. Cgit\'s configuration allows changing many settings, as documented on the cgitrc(5) manpage installed with Cgit. -- cgit v1.2.3