summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-07-13 09:46:19 +0200
committertv <tv@krebsco.de>2020-07-13 09:46:19 +0200
commit6d769b73b4954d6bd215b00e5674eb41a034f57c (patch)
treec4960d7ed5dbd4daa92e8ba4402bbeaa72f04593 /krebs
parente26705c2deb776ff00a9963e8834fe26572db1f7 (diff)
krebs git: use " instead of ''
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/git.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/3modules/git.nix b/krebs/3modules/git.nix
index b2d2ec6cc..3b941b48d 100644
--- a/krebs/3modules/git.nix
+++ b/krebs/3modules/git.nix
@@ -454,7 +454,7 @@ let
'';
# Smart HTTP transport. Regex based on.
# https://github.com/git/git/blob/v2.27.0/http-backend.c#L708-L721
- locations.''~ "^/[0-9A-Za-z._-]+/(HEAD|info/refs|objects/info/(alternates|http-alternates|packs)|[0-9a-f]{2}/([0-9a-f]{38}|[0-9a-f]{62})|pack/pack-([0-9a-f]{40}|[0-9a-f]{64})\.(pack|idx)|git-upload-pack|git-receive-pack)$"''.extraConfig = ''
+ locations."~ \"^/[0-9A-Za-z._-]+/(HEAD|info/refs|objects/info/(alternates|http-alternates|packs)|[0-9a-f]{2}/([0-9a-f]{38}|[0-9a-f]{62})|pack/pack-([0-9a-f]{40}|[0-9a-f]{64})\\.(pack|idx)|git-upload-pack|git-receive-pack)$\"".extraConfig = ''
include ${pkgs.nginx}/conf/fastcgi_params;
fastcgi_param GIT_HTTP_EXPORT_ALL "";
fastcgi_param GIT_PROJECT_ROOT ${cfg.dataDir};