aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-04-03 15:52:08 +0800
committerRunxi Yu <me@runxiyu.org>2025-04-03 15:52:08 +0800
commit400320ffafb7996754487a8d05ed5fd90724c45b (patch)
treed9d6e1aea254078ebb6cf3bc1ba856d40c75457e
parentgit2d: Initialize the path to zeros (diff)
downloadforge-400320ffafb7996754487a8d05ed5fd90724c45b.tar.gz
forge-400320ffafb7996754487a8d05ed5fd90724c45b.tar.zst
forge-400320ffafb7996754487a8d05ed5fd90724c45b.zip
config: Add git.socket for git2d
-rw-r--r--config.go1
-rw-r--r--forge.scfg4
-rw-r--r--man/lindenii-forge.53
3 files changed, 8 insertions, 0 deletions
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.