diff options
| author | Ángel Castañeda <angel@acsq.me> | 2023-10-07 21:16:50 -0500 |
|---|---|---|
| committer | Ángel Castañeda <angel@acsq.me> | 2024-01-24 02:48:26 -0600 |
| commit | 565c937dcd76aca6269efeeb3db59b1be03ca6ca (patch) | |
| tree | 1e8a3150c62d6648b02187c5972b03c74b110375 | |
| parent | 8c6d8cd9de9b3ec3798bdaa0666be2a8efd48721 (diff) | |
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.
| -rw-r--r-- | content/cgit.md | 8 |
1 files changed, 4 insertions, 4 deletions
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={{<hl>}}Chad's git server{{</hl>}} root-desc={{<hl>}}A web interface to LandChad's git repositories, powered by Cgit{{</hl>}} # 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. |
