diff --git a/conf.d/www.shore.co.il.conf b/conf.d/www.shore.co.il.conf index 35504f6fb78ba5604c016c572a7745abd32dd05e..4b63afe8c171fe8cfb345b4262dc47df85d9f4fd 100644 --- a/conf.d/www.shore.co.il.conf +++ b/conf.d/www.shore.co.il.conf @@ -1,4 +1,3 @@ -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;