update nginx git site
authorShane Jaroch <chown_tee@proton.me>
Thu, 15 Jan 2026 18:25:55 +0000 (13:25 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 15 Jan 2026 18:25:55 +0000 (13:25 -0500)
etc/nginx/conf.d/git-http.conf
scripts/gitweb-simplefrontend/services.html

index 6cdbb2aadc64d9657af87fd3c5f3bea206ac67cc..bd63baf5bd9f8f0b7332af6b266b5f8142e11030 100644 (file)
@@ -38,7 +38,7 @@ server {
     }
 
     # ----------------------------------------------------------------------
-    # Version 1: Original Gitweb (Standard)
+    # Version 1: Original Gitweb (Basic)
     # ----------------------------------------------------------------------
 
     # Static assets for standard gitweb
@@ -68,7 +68,7 @@ server {
     }
 
     # ----------------------------------------------------------------------
-    # Version 2: Simple Frontend (Theme only)
+    # Version 2: Simple Frontend (Theme, Primary gitweb)
     # ----------------------------------------------------------------------
 
     # Custom Theme/Assets Aliases for v2
@@ -104,20 +104,14 @@ server {
     }
 
     # ----------------------------------------------------------------------
-    # Version 3: Gitea (Proxy to localhost:3000)
+    # Version 3: Gitea (Full Server with Backend)
     # ----------------------------------------------------------------------
     location = /admin {
         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/;
         proxy_set_header Host $host;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
index 506590b90f21550bde60e55f69a5fed9eb03a1fd..c6e0bc052279046c22ceae517c62f537e79c2bf9 100644 (file)
     
     <div class="service">
         <h2><a href="/v1">/v1</a></h2>
-        <div class="desc">Original Gitweb (Standard)</div>
+        <div class="desc">Original Gitweb (Basic)</div>
     </div>
     <div class="service">
         <h2><a href="/v2">/v2</a></h2>
-        <div class="desc">Simple Frontend (Theme only)</div>
+        <div class="desc">Simple Frontend (Theme, Primary gitweb)</div>
     </div>
     <div class="service">
         <h2><a href="/v3">/v3</a></h2>
-        <div class="desc">Gitea (Proxy to localhost:3000)</div>
+        <div class="desc">Gitea (Full Server with Backend)</div>
     </div>
 
 </body>