]> Skullheadx's Git Forge - nixos.git/commitdiff
change to /srv/git/repos
authorSkullheadx <admonty1@protonmail.com>
Tue, 2 Jun 2026 04:33:10 +0000 (00:33 -0400)
committerSkullheadx <admonty1@protonmail.com>
Tue, 2 Jun 2026 04:33:10 +0000 (00:33 -0400)
hosts/icon/configuration.nix

index 1edaaacb74c2d2066d5210fb7468a218a9ddb4b0..5407b3d1fbb052ebf094cb2a76842da80c8819a6 100644 (file)
@@ -47,7 +47,7 @@
   users.users.nginx.extraGroups = ["git"];
   systemd.services.nginx.serviceConfig = {
     SupplementaryGroups = ["git"];
-    ReadOnlyPaths = ["/srv/git" "/srv"];
+    ReadOnlyPaths = ["/srv/git/repos" "/srv" "/srv/git"];
   };
   # systemd.services.fcgiwrap.serviceConfig.ReadOnlyPaths = ["/srv/git"];
   # Define a user account. Don't forget to set a password with ‘passwd’.
@@ -78,7 +78,7 @@
       $site_name =  "Skullheadx\'s Git Forge";
       $omit_owner = 1;
       $default_projects_order = "age";
-      $export_ok = "git-daemon-export-okt";
+      $export_ok = "git-daemon-export-ok";
     '';
   };
 
 
   services.gitDaemon = {
     enable = true;
-    basePath = "/srv/git";
+    basePath = "/srv/git/repos";
     listenAddress = "10.0.0.2";
     exportAll = false;
   };