aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rwxr-xr-xrun.sh35
2 files changed, 37 insertions, 4 deletions
diff --git a/README.md b/README.md
index 090d474..76368f4 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,8 @@ custom directories are not supported yet. you will have to manually edit the bui
- allow user to create directories
- 404 page
-- git web ui
-- auto deploy script
+- cgit: styling
+- cgit: how to download snapshots?
+- cgit: description and owner *(will this work?)*
+- cgit: about
- database, php, npm for clicker game
diff --git a/run.sh b/run.sh
index 3150b38..d508b8d 100755
--- a/run.sh
+++ b/run.sh
@@ -214,12 +214,43 @@ sudo apt install -y cgit fcgiwrap
sudo systemctl enable fcgiwrap
sudo systemctl start fcgiwrap
sudo tee /etc/cgitrc << EOF
+scan-path=/srv/git
+
css=/cgit.css
logo=/cgit.png
-scan-path=/srv/git
+favicon=/cgit.png
virtual-root=/
-about-filter=/usr/lib/cgit/filters/about-formatting.sh
+
readme=:README.md
+readme=:readme.md
+readme=:README
+readme=:readme
+readme=:ABOUT.md
+readme=:about.md
+readme=:ABOUT
+readme=:about
+source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
+about-filter=/usr/lib/cgit/filters/about-formatting.sh
+
+root-title=git.hitler.rip
+root-desc=web frontend for public git repos
+
+snapshots=tar.gz tar.bz2 zip
+
+enable-blame=1
+enable-commit-graph=1
+enable-log-filecount=1
+enable-log-linecount=1
+branch-sort=age
+enable-git-config=1
+
+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
EOF
sudo tee -a /usr/share/cgit/cgit.css << EOF
.logo > a > img {