summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2024-07-08 07:49:22 +0200
committerAlan Pearce2024-07-08 07:49:22 +0200
commitf4003610a2a6a3c0995ce23a3adafa03f55451ba (patch)
tree76ee04a29d97e57f3a01611be439aebbcb00effb /system
parent923e492b2439c949020d9fc40ac4551bcc11d45c (diff)
downloadnixfiles-f4003610a2a6a3c0995ce23a3adafa03f55451ba.tar.lz
nixfiles-f4003610a2a6a3c0995ce23a3adafa03f55451ba.tar.zst
nixfiles-f4003610a2a6a3c0995ce23a3adafa03f55451ba.zip
git-server: update config schema
Diffstat (limited to 'system')
-rw-r--r--system/settings/services/git-server.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/system/settings/services/git-server.nix b/system/settings/services/git-server.nix
index e8fe6360..72c441f5 100644
--- a/system/settings/services/git-server.nix
+++ b/system/settings/services/git-server.nix
@@ -64,13 +64,16 @@ let
   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 @@ in
   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";