}
# ----------------------------------------------------------------------
- # /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 / {