From 400320ffafb7996754487a8d05ed5fd90724c45b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 03 Apr 2025 15:52:08 +0800 Subject: [PATCH] config: Add git.socket for git2d --- config.go | 1 + forge.scfg | 4 ++++ man/lindenii-forge.5 | 3 +++ diff --git a/config.go b/config.go index 17ad3e75858fddf0c67737095d37c9d89e6e0db7..822f58bc6b9ebb2b8d17c8cc8503d1bebb55a33d 100644 --- a/config.go +++ b/config.go @@ -40,6 +40,7 @@ ReadTimeout uint32 `scfg:"read_timeout"` } `scfg:"lmtp"` Git struct { RepoDir string `scfg:"repo_dir"` + Socket string `scfg:"socket"` } `scfg:"git"` SSH struct { Net string `scfg:"net"` diff --git a/forge.scfg b/forge.scfg index e7885312ea36e191e55498d88d8afdbec47d3926..451643ae3f7dfc3c7e0cf94898f3caaa8b59700d 100644 --- a/forge.scfg +++ b/forge.scfg @@ -37,7 +37,11 @@ gecos "Lindenii Forge Test" } git { + # Where should newly-created Git repositories be stored? repo_dir /var/lib/lindenii/forge/repos + + # Where should git2d listen on? + socket /var/run/lindenii/forge/git2d.sock } ssh { diff --git a/man/lindenii-forge.5 b/man/lindenii-forge.5 index 18c61df9656544727d1701aeb6aa0a5437bbfb0d..5032d23e9932c80f5b107b549afa98c4ac5579e0 100644 --- a/man/lindenii-forge.5 +++ b/man/lindenii-forge.5 @@ -65,6 +65,9 @@ Configures Git repository storage. .Bl -tag -width Ds .It Ic repo_dir Filesystem path under which new repositories are stored. +.It Ic socket +Filesystem path for the socket listened on by +.Xr lindenii-forge-git2d 1 .El .It Ic db Configures database connection. -- 2.48.1