From 47152411277bdc091f9163685b16c547e0543324 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 17 Feb 2020 16:27:13 -0500 Subject: git.sr.ht: update recommended nginx configuration The previous version would match any URL ending in HEAD et al, which would cause web breakage if your repo had any files named HEAD. --- git.sr.ht/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git.sr.ht') diff --git a/git.sr.ht/installation.md b/git.sr.ht/installation.md index fe524b6..d306038 100644 --- a/git.sr.ht/installation.md +++ b/git.sr.ht/installation.md @@ -66,7 +66,7 @@ location = /authorize { proxy_set_header X-Original-URI $request_uri; } -location ~ ^.*/(HEAD|info/refs|objects/info/.*|git-(upload|receive)-pack).*$ { +location ~ ^/([^/]+)/([^/]+)/(HEAD|info/refs|objects/info/.*|git-upload-pack).*$ { auth_request /authorize; root /var/lib/git; fastcgi_pass unix:/run/fcgiwrap.sock; -- cgit