From 8791f66ade80441f0f4e0ea6459d52c14e17e41b Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Thu, 15 Jan 2026 17:30:10 -0500 Subject: [PATCH] update nginx config --- etc/nginx/conf.d/git-http.conf | 23 +++++++++------------ scripts/gitweb-simplefrontend/services.html | 4 ++-- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/etc/nginx/conf.d/git-http.conf b/etc/nginx/conf.d/git-http.conf index 58bd8c3..b681509 100644 --- a/etc/nginx/conf.d/git-http.conf +++ b/etc/nginx/conf.d/git-http.conf @@ -30,13 +30,6 @@ server { default_type text/html; } - # ---------------------------------------------------------------------- - # Root Redirect -> v2 - # ---------------------------------------------------------------------- - location = / { - return 302 /v2; - } - # ---------------------------------------------------------------------- # Version 1: Original Gitweb (Basic) # ---------------------------------------------------------------------- @@ -68,7 +61,7 @@ server { } # ---------------------------------------------------------------------- - # Version 2: Simple Frontend (Theme, Primary gitweb) + # Version 2: Styled Frontend (Theme, Static) # ---------------------------------------------------------------------- # Custom Theme/Assets Aliases for v2 @@ -104,13 +97,17 @@ server { } # ---------------------------------------------------------------------- - # Version 3: Gitea (Full Server with Backend) + # /v3/ redirect -> root # ---------------------------------------------------------------------- - location = /admin { - return 302 /v3/admin; + location = /v3/ { + return 302 /; } - location ^~ /v3/ { + # ---------------------------------------------------------------------- + # Version 3: Gitea (Full Server with Backend, Main) + # ---------------------------------------------------------------------- + + location / { proxy_pass http://localhost:3000/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -140,6 +137,6 @@ server { listen 80; listen [::]:80; server_name git.nutra.tk; - + return 301 https://$host$request_uri; } diff --git a/scripts/gitweb-simplefrontend/services.html b/scripts/gitweb-simplefrontend/services.html index c6e0bc0..6dcfb2f 100644 --- a/scripts/gitweb-simplefrontend/services.html +++ b/scripts/gitweb-simplefrontend/services.html @@ -26,11 +26,11 @@

/v2

-
Simple Frontend (Theme, Primary gitweb)
+
Styled Frontend (Theme, Static)

/v3

-
Gitea (Full Server with Backend)
+
Gitea (Full Server with Backend, Main)
-- 2.52.0