Skip to content
Snippets Groups Projects
Commit aae018af authored by nimrod's avatar nimrod
Browse files

Redirect cgit to GitLab.

Now that I finished migrating all repos (FINALLY!!!).
parent e1bdbe0f
No related branches found
No related tags found
No related merge requests found
Pipeline #207 passed
map $host $cgit { default cgit; }
map $host $lam { default ldap-account-manager; } map $host $lam { default ldap-account-manager; }
map $host $kodi { default kodi.shore.co.il; } map $host $kodi { default kodi.shore.co.il; }
...@@ -40,25 +39,10 @@ server { ...@@ -40,25 +39,10 @@ server {
charset UTF-8; charset UTF-8;
} }
location /cgit/ { location /cgit { return 301 https://git.shore.co.il/explore; }
proxy_pass http://$cgit$uri; location /cgit/ { return 301 https://git.shore.co.il/explore; }
proxy_http_version 1.1; location /git { return 301 https://git.shore.co.il/explore; }
include snippets/proxy-headers.conf; location /git/ { return 301 https://git.shore.co.il/explore; }
}
location /git {
rewrite ^/git /cgit/;
}
location /git/ {
rewrite ^/git/(.*) /cgit/$1;
}
location /cgit-css/ {
proxy_pass http://$cgit$request_uri;
proxy_http_version 1.1;
include snippets/proxy-headers.conf;
}
location /lam { location /lam {
proxy_pass http://$lam$request_uri; proxy_pass http://$lam$request_uri;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment