From 400320ffafb7996754487a8d05ed5fd90724c45b Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 3 Apr 2025 15:52:08 +0800 Subject: config: Add git.socket for git2d --- config.go | 1 + forge.scfg | 4 ++++ man/lindenii-forge.5 | 3 +++ 3 files changed, 8 insertions(+) diff --git a/config.go b/config.go index 17ad3e7..822f58b 100644 --- a/config.go +++ b/config.go @@ -40,6 +40,7 @@ var config struct { } `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 e788531..451643a 100644 --- a/forge.scfg +++ b/forge.scfg @@ -37,7 +37,11 @@ irc { } 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 18c61df..5032d23 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. -- cgit v1.2.3