From efd6e4a747f859c162301e0eb9204c89542f10b9 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 16 Sep 2024 12:58:13 +0200 Subject: fix git http backend for cgit whoops, forgot to change these which made cloning repositories (or talking to the remote git in general) impossible over http --- flora/services/cgit.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flora/services/cgit.nix b/flora/services/cgit.nix index 1d307e3..1dae737 100644 --- a/flora/services/cgit.nix +++ b/flora/services/cgit.nix @@ -82,7 +82,7 @@ in locations."~ /git(/[^/]*/(info/refs|git-(upload|receive)-pack|objects/info/packs))" = { extraConfig = '' - fastcgi_pass unix:${config.services.fcgiwrap.socketAddress}; + fastcgi_pass unix:${config.services.fcgiwrap.instances.cgit.socket.address}; include ${pkgs.nginx}/conf/fastcgi_params; fastcgi_param SCRIPT_FILENAME ${pkgs.gitMinimal}/bin/git-http-backend; fastcgi_param GIT_HTTP_EXPORT_ALL ""; @@ -93,7 +93,7 @@ in locations."~ /git/forks(/.*/(info/refs|git-(upload|receive)-pack|objects/info/packs))" = { extraConfig = '' - fastcgi_pass unix:${config.services.fcgiwrap.socketAddress}; + fastcgi_pass unix:${config.services.fcgiwrap.instances.cgit.socket.address}; include ${pkgs.nginx}/conf/fastcgi_params; fastcgi_param SCRIPT_FILENAME ${pkgs.gitMinimal}/bin/git-http-backend; fastcgi_param GIT_HTTP_EXPORT_ALL ""; -- cgit v1.2.3