Skip to content

README: improve the reverse proxy examples, add Caddy - #222

Open
aadrian wants to merge 1 commit into
gitbucket:masterfrom
aadrian:docs/pages-proxy-security
Open

aadrian wants to merge 1 commit into
gitbucket:masterfrom
aadrian:docs/pages-proxy-security

Conversation

@aadrian

@aadrian aadrian commented Oct 4, 2026

Copy link
Copy Markdown
Member

Improves the "Security" section of the README:

  • explains why pages should be served from a second domain, and why a separate domain is better than a sibling subdomain
  • the nginx example matches pages followed by /, ; or the end of the path, so it covers every URL form the servlet container maps to pages, and redirects with $request_uri
  • adds an equivalent Caddy example
  • adds a PlantUML diagram of the path pattern (docs/pages-path-regex.puml, rendered to SVG)
  • notes that pages of private repositories don't work on the second host

Both examples were tested on GitBucket 4.48.0 behind nginx 1.31 and Caddy 2.11, with the same set of requests: pages are redirected to the pages host and served there, and everything else on the pages host returns 403.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant