blob: 4b4873d5c20ba11e0f936ea8daa3802092a247e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# ---------------------------------------------------------------------------
# Global-only settings. These apply to cgit itself and are not snapshotted per
# repository, so their position in this file does not matter.
# ---------------------------------------------------------------------------
css=/cgit.css
logo=/cgit.png
favicon=/favicon.ico
root-title=Repositories
root-desc=Simple Git host
virtual-root=/cgit/
mimetype-file=/etc/mime.types
remove-suffix=1
section-from-path=1
enable-http-clone=1
# ---------------------------------------------------------------------------
# Repository-scoped settings.
#
# IMPORTANT: these MUST stay above scan-path. 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 (see cgit's
# repo_prepare()). Anything placed after scan-path is silently ignored for
# scanned repositories -- that is exactly how the clone URLs stopped showing up.
#
# clone-url is a single setting holding a space-separated list of templates;
# repeating the key would overwrite rather than append.
#
# $HTTP_HOST keeps the port the browser used, which is right for the http URL but
# wrong for ssh (it would yield host:8080:2222), so the ssh URL uses the
# port-free $SERVER_NAME plus the sshd port from sshd_config.
#
# The ssh path is "~/..." on purpose: git-shell jails the git user to its home
# (/var/lib/git), and an ssh:// URL path is taken as an absolute path, so a bare
# "/demo.git" fails with "does not appear to be a git repository".
#
# remove-suffix=1 strips the ".git" suffix from $CGIT_REPO_URL, so the suffix is
# re-appended here to keep the advertised URLs directly cloneable.
# ---------------------------------------------------------------------------
clone-url=ssh://git@$SERVER_NAME:2222/~/$CGIT_REPO_URL.git http://$HTTP_HOST/git/$CGIT_REPO_URL.git
snapshots=tar.gz zip
about-filter=/usr/lib/cgit/filters/about-formatting.sh
enable-log-filecount=1
enable-log-linecount=1
enable-commit-graph=1
max-stats=quarter
# ---------------------------------------------------------------------------
# Repository discovery. Keep this last so every setting above is inherited.
# ---------------------------------------------------------------------------
scan-path=/var/lib/git
|