Commit Graph
3 Commits
Author SHA1 Message Date
lotherk a5bc30bfaa fix(cgi): match pages host via SERVER_NAME fallback
CGI servers are not required to set HTTP_HOST. Fall back to SERVER_NAME:SERVER_PORT, omitting 80 and 443, and document the pages host contract. Also omit the redundant Status header on 200 file responses.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:29:28 +00:00
lotherk 802572bae9 feat(pages): build and publish bb sites on push
Add a Gotea Pages prototype: a pages branch is checked out with got, built with the vendored bb, swapped atomically into a pages root, and served only on a separate host from an allowlist. A post-receive hook installer wires the flow through Gitea delegate hooks. The CGI pages mode isolates the host and contains paths with realpath.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:28:02 +00:00
lotherk feda8568da feat(cgi): add HTML 4.01 CDE frontend
Add a C99/POSIX CGI browser for bare Git-format repositories, using got for every read. Pages are HTML 4.01 Transitional with CSS1, table layout, no JavaScript, and a configurable CDE/Motif palette. The browser supports flat and owner-scoped repository layouts, tree, blob, raw, log, and commit views, and has tests plus generated-page validation.

Assisted-by: OpenCode:DeepSeek-V4.1-Flash
2026-11-22 12:14:26 +00:00