Mercurial > self-hosted
comparison cgit/cgitrc @ 5:19a4c3672796 default tip
RE:重新新增Cgit配置文件
author | Franklin Schmit <meokcin@gmail.com> |
---|---|
date | Wed, 04 Sep 2024 08:15:23 +0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:4977c0f8b002 | 5:19a4c3672796 |
---|---|
1 ##### cgit configuration file ##### | |
2 # https://git.zx2c4.com/cgit/tree/cgitrc.5.txt | |
3 ##### format: NAME=VALUE ##### | |
4 | |
5 #### GLOBAL SETTINGS #### | |
6 | |
7 #### Web Configuration #### | |
8 css=/cgit.css | |
9 logo=/logo.svg | |
10 # logo-link= | |
11 favicon=/favicon.ico | |
12 virtual-root=/ | |
13 | |
14 # Prohibit search engine index | |
15 robots=noindex, nofollow | |
16 | |
17 # Personalization | |
18 root-title=Your Git Repository | |
19 root-desc=my personal minimal and cute git server. | |
20 head-include=/var/www/cgit/head-include.html | |
21 footer=/var/www/cgit/footer.html | |
22 root-readme=/var/www/cgit/about.html | |
23 | |
24 #### Cache Configuration #### | |
25 cache-about-ttl=45 | |
26 cache-dynamic-ttl=3 | |
27 cache-repo-ttl=10 | |
28 cache-size=1000 | |
29 cache-root=/var/cache/cgit | |
30 cache-root-ttl=3 | |
31 cache-scanrc-ttl=10 | |
32 cache-snapshot-ttl=30 | |
33 cache-static-ttl=15 | |
34 | |
35 #### Filter API #### | |
36 # owner-filter= | |
37 # auth filter= | |
38 source-filter=/usr/local/share/cgit/filters/syntax-highlighting.py | |
39 commit-filter=/usr/local/share/cgit/filters/commit-links.sh | |
40 email-filter=lua:/usr/local/share/cgit/filters/email-libravatar-korg.lua | |
41 # email-filter=lua:/usr/local/share/cgit/filters/email-libravatar.lua | |
42 # email-filter=lua:/usr/local/share/cgit/filters/email-gravatar.lua | |
43 about-filter=/usr/local/share/cgit/filters/about-formatting.sh | |
44 readme=:README.md | |
45 readme=:readme.md | |
46 readme=:README.txt | |
47 readme=:readme.txt | |
48 readme=:README | |
49 readme=:readme | |
50 | |
51 #### CGIT Server Configuration #### | |
52 | |
53 # local-time=0 | |
54 # noplainemail=0 | |
55 # noheader= | |
56 | |
57 # With Smart HTTP Git Clone | |
58 clone-url=https://git.xvo.es/$CGIT_REPO_URL | |
59 | |
60 # Disable dumb HTTP endpoint Git Clone | |
61 enable-http-clone=0 | |
62 | |
63 enable-index-owner=1 | |
64 enable-index-links=0 | |
65 enable-blame=1 | |
66 enable-log-filecount=1 | |
67 enable-log-linecount=1 | |
68 enable-commit-graph=1 | |
69 # enable-tree-linenumbers=1 | |
70 # enable-follow-links=0 | |
71 # enable-remote-branches=0 | |
72 # enable-git-config=0 | |
73 # enable-html-serving=0 | |
74 | |
75 # Sort Configuration | |
76 branch-sort=age | |
77 case-sensitive-sort=1 | |
78 commit-sort=date | |
79 | |
80 # Summary Configuration | |
81 summary-branches=5 | |
82 summary-log=15 | |
83 summary-tags=5 | |
84 snapshots=tar.gz zip | |
85 max-atom-items=15 | |
86 max-blob-size=1024 | |
87 max-commit-count=50 | |
88 max-message-length=100 | |
89 max-repo-count=40 | |
90 max-repodesc-length=60 | |
91 max-stats=year | |
92 | |
93 # MIME Types | |
94 mimetype.html=text/html | |
95 mimetype.gif=image/gif | |
96 mimetype.jpg=image/jpeg | |
97 mimetype.jpeg=image/jpeg | |
98 mimetype.png=image/png | |
99 mimetype.webp=image/webp | |
100 mimetype.pdf=application/pdf | |
101 mimetype.svg=image/svg+xml | |
102 | |
103 # Remove the .git suffix | |
104 remove-suffix=1 | |
105 scan-path=/home/git | |
106 | |
107 #### REPOSITORY SETTINGS #### | |
108 | |
109 # section-from-path=1 | |
110 # project-list=/path/to/projects.list | |
111 # enable-filter-overrides= | |
112 | |
113 # For Each Single Repository | |
114 # repo.name= | |
115 # repo.defbranch= | |
116 # repo.branch-sort= | |
117 # repo.hide= | |
118 # repo.homepage= | |
119 # repo.ignore= | |
120 # repo.desc= | |
121 # repo.owner= | |
122 # repo.path= | |
123 # repo.url= | |
124 # repo.clone-url= | |
125 # repo.logo= | |
126 # repo.logo-link= | |
127 # repo.readme= | |
128 # repo.section= | |
129 # repo.snapshots= | |
130 # repo.owner-filter= | |
131 # repo.source-filter= | |
132 # repo.about-filter= | |
133 # repo.email-filter= | |
134 # repo.commit-filter= | |
135 # repo.commit-sort= | |
136 # repo.enable-blame= | |
137 # repo.enable-commit-graph= | |
138 # repo.enable-html-serving= | |
139 # repo.enable-log-filecount= | |
140 # repo.enable-log-linecount= | |
141 # repo.enable-remote-branches= | |
142 # repo.enable-subject-links= | |
143 # repo.extra-head-content= | |
144 # repo.module-link= | |
145 # repo.max-stats= | |
146 # repo.snapshot-prefix= |