From: Shane Jaroch Date: Thu, 15 Jan 2026 18:16:14 +0000 (-0500) Subject: make /v2/ the default git.nutra.tk X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=b6d2a6fb8fe73afcaeff84f53f2649a0c7726828;p=nutratech%2Fvps-root.git make /v2/ the default git.nutra.tk --- diff --git a/etc/nginx/conf.d/git-http.conf b/etc/nginx/conf.d/git-http.conf index e30c02f..6cdbb2a 100644 --- a/etc/nginx/conf.d/git-http.conf +++ b/etc/nginx/conf.d/git-http.conf @@ -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/; diff --git a/scripts/gen_services_map.py b/scripts/gen_services_map.py old mode 100644 new mode 100755 index 39067a1..17de848 --- a/scripts/gen_services_map.py +++ b/scripts/gen_services_map.py @@ -28,9 +28,9 @@ HTML_TEMPLATE = """

Git Services Map

Generated automatically from Nginx configuration.

- + {services_html} - + """ diff --git a/scripts/gitweb-simplefrontend/services.html b/scripts/gitweb-simplefrontend/services.html index c2ae839..506590b 100644 --- a/scripts/gitweb-simplefrontend/services.html +++ b/scripts/gitweb-simplefrontend/services.html @@ -18,7 +18,7 @@

Git Services Map

Generated automatically from Nginx configuration.

- +

/v1

@@ -32,6 +32,6 @@

/v3

Gitea (Proxy to localhost:3000)
- + \ No newline at end of file