Commit aae018af authored by nimrod's avatar nimrod
Browse files

Redirect cgit to GitLab.

Now that I finished migrating all repos (FINALLY!!!).
parent e1bdbe0f
Loading
Loading
Loading
Loading
Loading
+4 −20
Original line number Diff line number Diff line
map $host $cgit { default cgit; }
map $host $lam { default ldap-account-manager; }
map $host $kodi { default kodi.shore.co.il; }

@@ -40,25 +39,10 @@ server {
        charset UTF-8;
    }

    location /cgit/ {
        proxy_pass          http://$cgit$uri;
        proxy_http_version  1.1;
        include             snippets/proxy-headers.conf;
    }

    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 /cgit          { return 301 https://git.shore.co.il/explore; }
    location /cgit/         { return 301 https://git.shore.co.il/explore; }
    location /git           { return 301 https://git.shore.co.il/explore; }
    location /git/          { return 301 https://git.shore.co.il/explore; }

    location /lam {
        proxy_pass          http://$lam$request_uri;