From 2c37df3c0b52a3954e2159e6f03ee3a19b959270 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 17 Feb 2025 01:58:46 +0800 Subject: config.go: git.hooks_socket --- config.go | 3 +++ forge.scfg | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index 888d488..45550d7 100644 --- a/config.go +++ b/config.go @@ -21,6 +21,9 @@ var config struct { CookieExpiry int `scfg:"cookie_expiry"` Root string `scfg:"root"` } `scfg:"http"` + Git struct { + HooksSocket string `scfg:"hooks_socket"` + } `scfg:"git"` SSH struct { Net string `scfg:"net"` Addr string `scfg:"addr"` diff --git a/forge.scfg b/forge.scfg index 49f6222..492b9ac 100644 --- a/forge.scfg +++ b/forge.scfg @@ -22,5 +22,5 @@ db { } git { - root /srv/git + hooks_socket /var/run/lindenii/forge/hooks.sock } -- cgit v1.2.3