Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

Give githttp a home that does not exist

With a home under /home, which ProtectHome hides, git-http-backend warned
every clone that it could not read ~/.config/git/attributes. The fcgiwrap
sockets also share /run/fcgiwrap, which systemd removes when one of them
stops, so the githttp socket is restarted after another instance stops.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Commit
b76f9ded956ae3c26b1812d8e74b65a51b0d3bf7
Author
Leitwolf11 ·
Parents
7879ebcac52c

Files · Download .tar.gz

Changes

 ops/README.md | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ops/README.md b/ops/README.md
index c9bce3d..2f07f0d 100644
--- a/ops/README.md
+++ b/ops/README.md
@@ -361,7 +361,10 @@ The files are in `ops/git`:
 | `nginx/git.conf` | `/etc/nginx/conf.d/git.conf` |
 
 Packages: `git-core`, and `fcgiwrap` from EPEL; `checkpolicy` builds the module. `githttp` is a system user without a
-shell or a home (`useradd --system --shell /sbin/nologin --no-create-home githttp`). The API reads the mirrors as
+shell, whose home does not exist (`useradd --system --shell /sbin/nologin --home-dir /nonexistent --no-create-home
+githttp`): with a home under `/home`, which `ProtectHome` hides, git-http-backend warns every clone that it cannot read
+`~/.config/git/attributes`. The fcgiwrap sockets share `/run/fcgiwrap`, which systemd removes when one of them stops:
+after stopping another instance, restart `fcgiwrap@githttp.socket`. The API reads the mirrors as
 `progmaweb`; `ProtectSystem=strict` leaves `/srv` readable.
 
 - **Mirrors.** `git-mirror` fetches only branches and tags from `https://github.com/Progmasoft/<name>.git` (never the