summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstuebinm2024-09-16 12:58:13 +0200
committerstuebinm2024-09-16 12:58:13 +0200
commitefd6e4a747f859c162301e0eb9204c89542f10b9 (patch)
tree71394c958f4bcb250ecb2010820b764633d61568
parentecb63e4d4c70589f3ff2e2d15880743cc7f611ff (diff)
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
Diffstat (limited to '')
-rw-r--r--flora/services/cgit.nix4
1 files 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 "";