Where Is the cgit Config File?
cgit reads a single cgitrc file, defaulting to etc cgitrc. Cache and repo scans follow scan path entries inside it.
Last updated
cgit configures through one file with a handful of stanzas. Repo list, scan paths, readme names, and cache tunables all live there, defaulting to the system config path. Virtual hosts override with per host files.
There is no daemon state beyond optional caches. Repo content stays in the git dirs cgit scans, so the config file plus repos form the complete backup. Age string and readme filters tune each repo view. Syntax errors fail visibly on page load, which beats silent drift. Snapshot archives generate on demand, leaving no stored files.
Where cgit stores this, by platform
/etc/cgitrc
Repo scans, readme rules, and cache paths. The only config file. Validate by loading any repo page after edits.
Frequently asked questions
How do I move cgit to a new server?
Copy cgitrc to the new host and adjust repo paths. No database exists, so the file plus repos restore fully.
How do I speed up cgit?
Set the cache entries in cgitrc pointing at a writable dir. Scanned repo lists cache there to keep page loads fast.
Notice an outdated path? Let us know.