diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-02-17 16:27:13 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-02-17 16:27:13 -0500 |
commit | 47152411277bdc091f9163685b16c547e0543324 (patch) | |
tree | 53ff6bbe0d33509ad885b73cf6b26d8618b16715 /git.sr.ht/installation.md | |
parent | 1ae91ad49ace29070b96acad9adf8fccd4cc05ca (diff) | |
download | sr.ht-docs-47152411277bdc091f9163685b16c547e0543324.tar.gz |
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.
Diffstat (limited to 'git.sr.ht/installation.md')
-rw-r--r-- | git.sr.ht/installation.md | 2 |
1 files changed, 1 insertions, 1 deletions
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; |