From: Shane Jaroch Date: Sat, 24 Jan 2026 02:41:42 +0000 (-0500) Subject: add klaus as v3 (gitea v4) X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=28eed96060bfa75220fc596dd22adda14a32bada;p=nutratech%2Fvps-root.git add klaus as v3 (gitea v4) --- diff --git a/etc/nginx/conf.d/dev/git-http.conf b/etc/nginx/conf.d/dev/git-http.conf index f13cd85..c2d74ca 100644 --- a/etc/nginx/conf.d/dev/git-http.conf +++ b/etc/nginx/conf.d/dev/git-http.conf @@ -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 / {