diff options
author | tv <tv@krebsco.de> | 2017-10-17 22:24:34 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2017-10-17 22:24:34 +0200 |
commit | ebef1a355f1104a55d24010bc0d2be772849fa3e (patch) | |
tree | b97e3dbbe49018df566cc5cb6005c6c11980a11e /krebs/3modules/git.nix | |
parent | 3c810fef8ac062689a76de26b782d57692ddac90 (diff) |
cgit: reduce log spam
Diffstat (limited to 'krebs/3modules/git.nix')
-rw-r--r-- | krebs/3modules/git.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/krebs/3modules/git.nix b/krebs/3modules/git.nix index 610c20bb4..ba0924681 100644 --- a/krebs/3modules/git.nix +++ b/krebs/3modules/git.nix @@ -420,7 +420,16 @@ let ]; locations."/".extraConfig = '' include ${pkgs.nginx}/conf/fastcgi_params; - fastcgi_param SCRIPT_FILENAME ${pkgs.cgit}/cgit/cgit.cgi; + fastcgi_param SCRIPT_FILENAME ${pkgs.writeDash "cgit-wrapper" '' + set -efu + exec 3>&1 + ${pkgs.cgit}/cgit/cgit.cgi "$@" 2>&1 >&3 3>&- \ + | ${pkgs.gnused}/bin/sed \ + ' + \|^${pkgs.cgit}/cgit/cgit.cgi: Relink |d + ' + exec 3>&- + ''}; fastcgi_param PATH_INFO $uri; fastcgi_param QUERY_STRING $args; fastcgi_param HTTP_HOST $server_name; |