git-server: update config schema
Alan Pearce alan@alanpearce.eu
Mon, 08 Jul 2024 07:49:22 +0200
1 files changed, 12 insertions(+), 9 deletions(-)
M system/settings/services/git-server.nix → system/settings/services/git-server.nix
@@ -64,13 +64,16 @@ mkMirrorWants = repo: map (target: "mirror-to-${target}@${repo}.path"); in { - services.fcgiwrap = { - enable = true; - user = "gitolite"; - group = "gitolite"; - preforkProcesses = 2; - socketType = "tcp6"; - socketAddress = "[::1]:9000"; + services.fcgiwrap.gitolite = { + process = { + user = "gitolite"; + group = "gitolite"; + prefork = 2; + }; + socket = { + type = "tcp6"; + address = "[::1]:9000"; + }; }; services.gitolite = { enable = true; @@ -114,8 +117,8 @@ services.caddy.virtualHosts = { "git.alanpearce.eu" = let - fcgi = config.services.fcgiwrap; - fcgisocket = "${fcgi.socketType}/${fcgi.socketAddress}"; + fcgi = config.services.fcgiwrap.gitolite; + fcgisocket = "${fcgi.socket.type}/${fcgi.socket.address}"; in { useACMEHost = "alanpearce.eu";