From 28eed96060bfa75220fc596dd22adda14a32bada Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Fri, 23 Jan 2026 21:41:42 -0500 Subject: [PATCH] add klaus as v3 (gitea v4) --- etc/nginx/conf.d/dev/git-http.conf | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 / { -- 2.52.0