}
# ----------------------------------------------------------------------
- # Root Redirect -> v1
+ # Root Redirect -> v2
# ----------------------------------------------------------------------
location = / {
- return 302 /v1;
+ return 302 /v2;
}
# ----------------------------------------------------------------------
# Version 1: Original Gitweb (Standard)
# ----------------------------------------------------------------------
-
+
# Static assets for standard gitweb
location ^~ /v1/static/ {
alias /usr/share/gitweb/static/;
return 302 /v3/admin;
}
+ # Shim for Gitea assets/images (since Gitea thinks it is at root)
+ location /assets/ { proxy_pass http://localhost:3000/assets/; }
+ location /img/ { proxy_pass http://localhost:3000/img/; }
+ location = /favicon.ico { proxy_pass http://localhost:3000/favicon.ico; }
+
location /v3/ {
proxy_pass http://localhost:3000/;
proxy_redirect / /v3/;
<body>
<h1>Git Services Map</h1>
<p class="meta">Generated automatically from Nginx configuration.</p>
-
+
<div class="service">
<h2><a href="/v1">/v1</a></h2>
<h2><a href="/v3">/v3</a></h2>
<div class="desc">Gitea (Proxy to localhost:3000)</div>
</div>
-
+
</body>
</html>
\ No newline at end of file