aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaster4385 <venkatesh@tablaster.dev>2024-12-02 12:08:56 +0100
committerBlaster4385 <venkatesh@tablaster.dev>2024-12-02 12:08:56 +0100
commitaa49b13997e35abc66a2b5570e413491ef463dde (patch)
treea6b67d10a3d79bb039152203f3961da6c9702229
parent712fb87951637855775598a8bb4d30f97badbcb6 (diff)
added cgitrc and footerHEADmain
-rw-r--r--Makefile2
-rw-r--r--cgitrc61
-rw-r--r--footer.html3
3 files changed, 66 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7f8a5cb..e5e9bd7 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,8 @@ install: all
$(INSTALL) -m 0644 cgit.css $(DESTDIR)$(CGIT_DATA_PATH)/cgit.css
$(INSTALL) -m 0644 cgit.js $(DESTDIR)$(CGIT_DATA_PATH)/cgit.js
$(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png
+ $(INSTALL) -m 0644 cgitrc $(CGIT_CONFIG)
+ $(INSTALL) -m 0644 footer.html $(DESTDIR)$(CGIT_DATA_PATH)/footer.html
$(INSTALL) -m 0644 favicon.ico $(DESTDIR)$(CGIT_DATA_PATH)/favicon.ico
$(INSTALL) -m 0644 robots.txt $(DESTDIR)$(CGIT_DATA_PATH)/robots.txt
$(INSTALL) -m 0755 -d $(DESTDIR)$(filterdir)
diff --git a/cgitrc b/cgitrc
new file mode 100644
index 0000000..eba27b0
--- /dev/null
+++ b/cgitrc
@@ -0,0 +1,61 @@
+# Enable repo-specific git config
+enable-git-config=1
+
+# Root title and description
+root-title=Tablaster's git repositories
+root-desc=Git repositories hosted at tablaster.dev
+
+# Include footer
+footer=/var/www/html/cgit/cgi/footer.html
+
+# Set virtual root
+virtual-root=/
+
+# Remove .git suffix from displayed repos
+remove-suffix=1
+
+# Show extra links for each repository on the index page
+# enable-index-links=1
+
+# Show number of affected files per commit on the log pages
+enable-log-filecount=1
+
+# Show number of added/removed lines per commit on the log pages
+enable-log-linecount=1
+
+# List of common mimetypes
+mimetype.gif=image/gif
+mimetype.html=text/html
+mimetype.jpg=image/jpeg
+mimetype.jpeg=image/jpeg
+mimetype.pdf=application/pdf
+mimetype.png=image/png
+mimetype.svg=image/svg+xml
+
+# HTML file to include in the page head
+#head-include=/var/www/html/cgit/head_include.html
+
+# External filter for formatting the "about" section of repositories
+about-filter=/var/www/html/cgit/filters/about-formatting.sh
+
+# Search for these files in the root of the default branch of repositories ti render the about page
+readme=:README.md
+readme=:readme.md
+readme=:README.mkd
+readme=:readme.mkd
+readme=:README.rst
+readme=:readme.rst
+readme=:README.html
+readme=:readme.html
+readme=:README.htm
+readme=:readme.htm
+readme=:README.txt
+readme=:readme.txt
+readme=:README
+readme=:readme
+
+# Path to the project list
+project-list=/var/lib/git/projects.list
+
+# Path to scan for git repositories
+scan-path=/var/lib/git/repositories
diff --git a/footer.html b/footer.html
new file mode 100644
index 0000000..9d8d7ca
--- /dev/null
+++ b/footer.html
@@ -0,0 +1,3 @@
+<div class="footer">
+Powered by <a href="https://git.zx2c4.com/cgit/about/">cgit</a>, Gruvboxed by <a href="https://tablaster.dev">Blaster4385</a>.
+</div>