default_type text/html;
}
- # ----------------------------------------------------------------------
- # Root Redirect -> v2
- # ----------------------------------------------------------------------
- location = / {
- return 302 /v2;
- }
-
# ----------------------------------------------------------------------
# Version 1: Original Gitweb (Basic)
# ----------------------------------------------------------------------
}
# ----------------------------------------------------------------------
- # Version 2: Simple Frontend (Theme, Primary gitweb)
+ # Version 2: Styled Frontend (Theme, Static)
# ----------------------------------------------------------------------
# Custom Theme/Assets Aliases for v2
}
# ----------------------------------------------------------------------
- # 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;
listen 80;
listen [::]:80;
server_name git.nutra.tk;
-
+
return 301 https://$host$request_uri;
}
</div>
<div class="service">
<h2><a href="/v2">/v2</a></h2>
- <div class="desc">Simple Frontend (Theme, Primary gitweb)</div>
+ <div class="desc">Styled Frontend (Theme, Static)</div>
</div>
<div class="service">
<h2><a href="/v3">/v3</a></h2>
- <div class="desc">Gitea (Full Server with Backend)</div>
+ <div class="desc">Gitea (Full Server with Backend, Main)</div>
</div>
</body>