Skip to content

Add optional cgit web interface - #1

Merged
Float314 merged 1 commit into
mainfrom
cgit_option
Oct 12, 2026
Merged

Float314 merged 1 commit into
mainfrom
cgit_option

Conversation

@Float314

Copy link
Copy Markdown
Owner

Ask during interactive setup which web interface to use: the built-in browser or cgit. Selectable via --web-ui <builtin|cgit> and the webInterface config field (default: builtin).

  • Run cgit as root (virtual-root=/) so its URLs share localgit's URL space, and keep the smart-HTTP git endpoints working alongside it.
  • Generate a cgitrc listing explicit repo.url/repo.path entries from localgit's own discovery; rewrite it when the repo set changes.
  • Keep the cgitrc and cache off the served drive (temp dir + cache-size=0).
  • Serve cgit's static assets from a probed asset dir when available.
  • Extract the shared CGI bridge into src/cgi.js (used by git http-backend and cgit); no runtime npm dependencies.
  • Fail clearly at server start when cgit is enabled but not installed.

Ask during interactive setup which web interface to use: the built-in
browser or cgit. Selectable via --web-ui <builtin|cgit> and the
webInterface config field (default: builtin).

- Run cgit as root (virtual-root=/) so its URLs share localgit's URL
  space, and keep the smart-HTTP git endpoints working alongside it.
- Generate a cgitrc listing explicit repo.url/repo.path entries from
  localgit's own discovery; rewrite it when the repo set changes.
- Keep the cgitrc and cache off the served drive (temp dir + cache-size=0).
- Serve cgit's static assets from a probed asset dir when available.
- Extract the shared CGI bridge into src/cgi.js (used by git http-backend
  and cgit); no runtime npm dependencies.
- Fail clearly at server start when cgit is enabled but not installed.
@Float314
Float314 merged commit 855f18f into main Oct 12, 2026
3 checks passed
@Float314
Float314 deleted the cgit_option branch October 12, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant