Redirect /gitea/ to git.DOMAIN instead of proxying Gitea
Gitea's ROOT_URL is now https://git.DOMAIN/, served by the Gitea LXC's own tunnel, so Caddy stops proxying /gitea/ and 301s every /gitea/* URL there with the prefix dropped and the query kept (CV links, HTTPS clones, bookmarks). The admin gate on Gitea's commit-history views goes with the proxy; on git.DOMAIN they are public by choice. The registry at the apex's /v2/ is still proxied. edge_test.sh checks the redirects instead of the gate, and the docs and architecture diagrams follow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -57,14 +57,9 @@
|
||||
<rect class="dg-box" x="800" y="285" width="280" height="68" rx="3" />
|
||||
<text class="dg-code" x="812" y="323" style="fill: var(--color-primary)">gitea:3000</text>
|
||||
<text class="dg-small" x="1070" y="323" text-anchor="end">git server</text>
|
||||
<circle class="dg-dot dg-dot--pink" cx="24" cy="297" r="4" />
|
||||
<text class="dg-code" x="36" y="301" style="fill: var(--color-secondary)">~ /gitea/<o>/<r>/(…commit/|archive/|compare/)</text>
|
||||
<text class="dg-small" x="390" y="301">strip /gitea · auth_request</text>
|
||||
<path class="dg-edge dg-edge--pink" d="M712,297 H796" />
|
||||
<circle class="dg-dot" cx="24" cy="319" r="4" />
|
||||
<text class="dg-code" x="36" y="323" style="fill: var(--color-secondary)">/gitea/</text>
|
||||
<text class="dg-small" x="390" y="323">strip /gitea</text>
|
||||
<path class="dg-edge" d="M712,319 H796" />
|
||||
<text class="dg-code" x="36" y="323" style="fill: var(--color-secondary)">/gitea/*</text>
|
||||
<text class="dg-small" x="390" y="323">301 → git.DOMAIN (its own tunnel)</text>
|
||||
<circle class="dg-dot" cx="24" cy="341" r="4" />
|
||||
<text class="dg-code" x="36" y="345" style="fill: var(--color-secondary)">/v2/ (apex server block only)</text>
|
||||
<text class="dg-small" x="390" y="345">registry · no body limit · 900s</text>
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
<text class="dg-code" x="570" y="451" text-anchor="middle">:3000 http · :2222 ssh</text>
|
||||
<text class="dg-small" x="570" y="465" text-anchor="middle" style="fill: var(--color-tertiary)">both published</text>
|
||||
<path class="dg-edge" d="M400,437 H476" />
|
||||
<text class="dg-edge-label dg-edge-label--mint" x="440" y="430" text-anchor="middle">/gitea/</text>
|
||||
<text class="dg-edge-label dg-edge-label--mint" x="440" y="430" text-anchor="middle">/v2/</text>
|
||||
<path class="dg-edge dg-edge--green dg-edge--both-green" d="M520,392 V410" />
|
||||
<text class="dg-edge-label" x="528" y="405">clone · push webhook</text>
|
||||
</g>
|
||||
|
||||
Reference in New Issue
Block a user