summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2024-10-02 20:39:30 +0200
committerlassulus <git@lassul.us>2024-10-02 20:41:23 +0200
commitc57601289b9f61c4b72eb3d8c456b5faa81e8359 (patch)
tree6a682d35256785397f8a8aae478cafa807e151f4 /krebs/3modules
parent7d602411926c1075fbce3a0cc2eeefe4112eb315 (diff)
git: use instance socketAddress instaed of deprecated global
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/git.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/3modules/git.nix b/krebs/3modules/git.nix
index d408550c7..c00a63702 100644
--- a/krebs/3modules/git.nix
+++ b/krebs/3modules/git.nix
@@ -461,7 +461,7 @@ let
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_STRING $args;
fastcgi_param HTTP_HOST $server_name;
- fastcgi_pass unix:${config.services.fcgiwrap.socketAddress};
+ fastcgi_pass unix:${config.services.fcgiwrap.instances.cgit.socket.address};
'';
# Smart HTTP transport. Regex based on.
# https://github.com/git/git/blob/v2.27.0/http-backend.c#L708-L721
@@ -481,7 +481,7 @@ let
}};
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME ${pkgs.git}/bin/git-http-backend;
- fastcgi_pass unix:${config.services.fcgiwrap.socketAddress};
+ fastcgi_pass unix:${config.services.fcgiwrap.instances.cgit.socket.address};
'';
locations."/static/".extraConfig = ''
root ${pkgs.cgit}/cgit;