Skip to content
Snippets Groups Projects
Commit a32b83f2 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

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: default avatarLukas Fleischer <lfleischer@archlinux.org>
parent fe46b015
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment