summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup from the AI slopJesper Jensen2026-11-155-237/+19
|
* The host, built around the access control executabledelusionalai2026-11-156-52/+312
| | | | | | | | | | | | | | | git-host is now the single home of the git repo configuration. The Dockerfile grew a build stage that installs git-authz from its own repository (the access-control / git-host-c project) via `make install`, so the image carries the executable, its example policy and the pre-receive hook symlink, all placed by the program's own installer rather than copied by hand. The server configuration is the git-authz-aware set that used to live beside the program: the entrypoint sets core.hooksPath and refuses to serve on a policy the hook cannot use, sshd carries PermitUserEnvironment and ForceCommand so a key's identity survives to the hook, create-repo prints the policy line to add, and git-host-key manages keys that name their user. cgitrc keeps the corrected ordering (repo-scoped settings above scan-path).
* Move repo-scoped cgit settings above scan-pathdelusionalai2026-11-151-7/+39
| | | | | | | | | | | | | | | | | | | | | | | cgit processes scan-path at the point it appears in the config file and every repository it discovers snapshots the current global settings at that moment (repo_prepare()). Anything placed below scan-path was silently ignored for scanned repositories -- clone-url was, which is why the interface showed no clone URLs at all. Move all repo-scoped settings above scan-path and fix the templates: - clone-url is a single setting holding a space-separated list; repeating the key overwrites rather than appends - $HTTP_HOST carries the port, which is right for the http URL but would yield host:8080:2222 for ssh, so ssh uses port-free $SERVER_NAME - the ssh path must be "~/..." because git-shell jails the git user to its home and an ssh:// path is taken as absolute - remove-suffix=1 strips ".git" from $CGIT_REPO_URL, so re-append it to keep the advertised URLs directly cloneable This also restores enable-log-filecount, enable-log-linecount, enable-commit-graph, max-stats, snapshots and about-filter for scanned repos, and activates remove-suffix (browse URLs lose the ".git" suffix).
* Add build configJesper Jensen2026-08-101-0/+48
|
* Simplify clone-url and add mimetypesJesper Jensen2026-06-041-2/+2
|
* INITIAL COMMITJesper Jensen2026-06-0410-0/+237