]> Nutra Git (v1) - nutratech/vps-root.git/commitdiff
add klaus as v3 (gitea v4)
authorShane Jaroch <chown_tee@proton.me>
Sat, 24 Jan 2026 02:41:42 +0000 (21:41 -0500)
committerShane Jaroch <chown_tee@proton.me>
Sat, 24 Jan 2026 02:41:42 +0000 (21:41 -0500)
etc/nginx/conf.d/dev/git-http.conf

index f13cd857cbe72272859926d9e5ef293e5c474c89..c2d74cafc77c32dfcd8930a1b09fc76710ef5277 100644 (file)
@@ -98,17 +98,28 @@ server {
     }
 
     # ----------------------------------------------------------------------
-    # /v3 redirect -> root
+    # Version 3: Klaus (Python Viewer)
     # ----------------------------------------------------------------------
-    location = /v3 {
+    location /v3/ {
+        proxy_pass http://127.0.0.1:8080/;
+        proxy_set_header Host $host;
+        proxy_set_header X-Real-IP $remote_addr;
+        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+        proxy_set_header X-Forwarded-Proto $scheme;
+    }
+
+    # ----------------------------------------------------------------------
+    # /v4 redirect -> root
+    # ----------------------------------------------------------------------
+    location = /v4 {
         return 302 /;
     }
-    location = /v3/ {
+    location = /v4/ {
         return 302 /;
     }
 
     # ----------------------------------------------------------------------
-    # Version 3: Gitea (Full Server with Backend, Main)
+    # Version 4: Gitea (Full Server with Backend, Main)
     # ----------------------------------------------------------------------
 
     location / {