Add capture '/git' (without a trailing slash) to rules

This commit is contained in:
2025-06-11 12:39:07 -07:00
parent 7b8413ae57
commit 54052e3890
2 changed files with 15 additions and 8 deletions

View File

@@ -44,12 +44,12 @@ http {
return 301 http://miti.sh$request_uri;
}
location ~ ^/git/(.*)$ {
return 301 https://git.miti.sh/ccm/$1;
location ~ ^/git/?(.*)$ {
return 301 http://git.miti.sh/ccm/$1;
}
location ~ ^/apps/(.*)$ {
return 301 https://apps.miti.sh/$1;
return 301 http://apps.miti.sh/$1;
}
}
}