make /v2/ the default git.nutra.tk
authorShane Jaroch <chown_tee@proton.me>
Thu, 15 Jan 2026 18:16:14 +0000 (13:16 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 15 Jan 2026 18:16:14 +0000 (13:16 -0500)
etc/nginx/conf.d/git-http.conf
scripts/gen_services_map.py [changed mode: 0644->0755]
scripts/gitweb-simplefrontend/services.html

index e30c02f736dc5a47fabe76b51f00594d5b616a4d..6cdbb2aadc64d9657af87fd3c5f3bea206ac67cc 100644 (file)
@@ -31,16 +31,16 @@ server {
     }
 
     # ----------------------------------------------------------------------
-    # 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/;
@@ -110,6 +110,11 @@ server {
         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/;
old mode 100644 (file)
new mode 100755 (executable)
index 39067a1..17de848
@@ -28,9 +28,9 @@ HTML_TEMPLATE = """<!DOCTYPE html>
 <body>
     <h1>Git Services Map</h1>
     <p class="meta">Generated automatically from Nginx configuration.</p>
-    
+
     {services_html}
-    
+
 </body>
 </html>"""
 
index c2ae8391b23c081ee085a2e794d369be543f15b6..506590b90f21550bde60e55f69a5fed9eb03a1fd 100644 (file)
@@ -18,7 +18,7 @@
 <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>
@@ -32,6 +32,6 @@
         <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