fix config; deploy calls all targets; stop fighting gitea HTML
authorShane Jaroch <chown_tee@proton.me>
Thu, 15 Jan 2026 18:02:32 +0000 (13:02 -0500)
committerShane Jaroch <chown_tee@proton.me>
Thu, 15 Jan 2026 18:02:32 +0000 (13:02 -0500)
Makefile
etc/nginx/conf.d/git-http.conf
scripts/gitweb-simplefrontend/services.html

index de4d8cefd08ff879d33242aaa1268df5cf453708..0c0757c25954763f64324f3cf10df1bcdc997ad9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,7 @@ diff/nginx: ##H @Remote Show diff between local and remote
 
 .PHONY: deploy/nginx
 deploy/nginx: ##H @Remote Deploy staged files to remote
+deploy/nginx: stage/nginx test/nginx diff/nginx
        @echo "Deploying checked-in nginx config to $(VPS_HOST)..."
        ssh -t $(VPS) "bash ~/.nginx-staging/scripts/deploy.sh"
 
index 1f872e201a554e67430140b279555efe5be2ae90..e30c02f736dc5a47fabe76b51f00594d5b616a4d 100644 (file)
@@ -112,6 +112,7 @@ server {
 
     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 bb3a59a8b1461b562f77461106bd0ef5a7cd0083..c2ae8391b23c081ee085a2e794d369be543f15b6 100644 (file)
@@ -1,76 +1,37 @@
-<!doctype html>
+<!DOCTYPE html>
 <html>
-    <head>
-        <title>NutraTech Git Services</title>
-        <style>
-            body {
-                font-family: sans-serif;
-                max-width: 800px;
-                margin: 2rem auto;
-                line-height: 1.6;
-                padding: 0 1rem;
-                color: #333;
-            }
-            h1 {
-                border-bottom: 2px solid #eee;
-                padding-bottom: 0.5rem;
-            }
-            .service {
-                margin-bottom: 1.5rem;
-                padding: 1.5rem;
-                border: 1px solid #ddd;
-                border-radius: 8px;
-                background: #f9f9f9;
-            }
-            .service:hover {
-                background: #fff;
-                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
-                border-color: #ccc;
-            }
-            .service h2 {
-                margin-top: 0;
-                margin-bottom: 0.5rem;
-            }
-            .service a {
-                text-decoration: none;
-                color: #0066cc;
-            }
-            .service a:hover {
-                text-decoration: underline;
-            }
-            .desc {
-                margin-bottom: 0.5rem;
-            }
-            .meta {
-                font-size: 0.85em;
-                color: #666;
-            }
-            .tag {
-                display: inline-block;
-                padding: 2px 8px;
-                background: #e0e0e0;
-                border-radius: 12px;
-                font-size: 0.8em;
-                margin-right: 0.5rem;
-                color: #444;
-            }
-        </style>
-    </head>
-    <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>
-            <div class="desc">Original Gitweb (Standard)</div>
-        </div>
-        <div class="service">
-            <h2><a href="/v2">/v2</a></h2>
-            <div class="desc">Simple Frontend (Theme only)</div>
-        </div>
-        <div class="service">
-            <h2><a href="/v3">/v3</a></h2>
-            <div class="desc">Gitea (Proxy to localhost:3000)</div>
-        </div>
-    </body>
-</html>
+<head>
+    <title>NutraTech Git Services</title>
+    <style>
+        body { font-family: sans-serif; max-width: 800px; margin: 2rem auto; line-height: 1.6; padding: 0 1rem; color: #333; }
+        h1 { border-bottom: 2px solid #eee; padding-bottom: 0.5rem; }
+        .service { margin-bottom: 1.5rem; padding: 1.5rem; border: 1px solid #ddd; border-radius: 8px; background: #f9f9f9; }
+        .service:hover { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); border-color: #ccc; }
+        .service h2 { margin-top: 0; margin-bottom: 0.5rem; }
+        .service a { text-decoration: none; color: #0066cc; }
+        .service a:hover { text-decoration: underline; }
+        .desc { margin-bottom: 0.5rem; }
+        .meta { font-size: 0.85em; color: #666; }
+        .tag { display: inline-block; padding: 2px 8px; background: #e0e0e0; border-radius: 12px; font-size: 0.8em; margin-right: 0.5rem; color: #444; }
+    </style>
+</head>
+<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>
+        <div class="desc">Original Gitweb (Standard)</div>
+    </div>
+    <div class="service">
+        <h2><a href="/v2">/v2</a></h2>
+        <div class="desc">Simple Frontend (Theme only)</div>
+    </div>
+    <div class="service">
+        <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