~sircmpwn/sr.ht-docs

47152411277bdc091f9163685b16c547e0543324 — Drew DeVault 1 year, 6 months ago 1ae91ad
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.
1 files changed, 1 insertions(+), 1 deletions(-)

M git.sr.ht/installation.md
M git.sr.ht/installation.md => git.sr.ht/installation.md +1 -1
@@ 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;