diff options
author | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-12 16:38:27 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-06-12 16:48:30 +0200 |
commit | a32b83f200123047e88bede033e49893cf01b20c (patch) | |
tree | ce5f277e40d58d5d1a4a23799f06075c348849ea | |
parent | fe46b0151976328bbee0399696c6013d0b7981b6 (diff) | |
download | aurweb-a32b83f200123047e88bede033e49893cf01b20c.tar.xz |
Improve the regular expression to match HTTP clones
Specifically check for URIs git-http-backend(1) can handle. This also
allows us to make the ".git" suffix optional.
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r-- | INSTALL | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ Setup on Arch Linux 9) If you want to enable smart HTTP support with nginx and uWSGI, you can use the following directives: - location ~ ^/([a-z0-9][a-z0-9.+_-]*)\.git/(.*)$ { + location ~ "^/([a-z0-9][a-z0-9.+_-]*?)(\.git)?/(git-(receive|upload)-pack|HEAD|info/refs|objects/(info/(http-)?alternates|packs)|[0-9a-f]{2}/[0-9a-f]{38}|pack/pack-[0-9a-f]{40}\.(pack|idx))$" { include uwsgi_params; uwsgi_modifier1 9; uwsgi_param PATH_INFO /aur.git/$2; |