aboutsummaryrefslogtreecommitdiffstats
path: root/roles/cgit
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-23 09:10:13 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-23 09:10:13 +0000
commit249798531e0cbd338686cff52df1172aed3cc4a1 (patch)
tree35e9c215acfb16ffa1e5db59d337f2a2bc22984a /roles/cgit
parent2cbeca09fc9e2a53b0c1d5881f91d3d22518f16b (diff)
downloadrules-249798531e0cbd338686cff52df1172aed3cc4a1.tar.gz
roles/cgit: Fix favicon location and mimetypes
Diffstat (limited to 'roles/cgit')
-rw-r--r--roles/cgit/defaults/main.yml4
-rw-r--r--roles/cgit/templates/cgitrc.j29
2 files changed, 11 insertions, 2 deletions
diff --git a/roles/cgit/defaults/main.yml b/roles/cgit/defaults/main.yml
index 715c258..47d312a 100644
--- a/roles/cgit/defaults/main.yml
+++ b/roles/cgit/defaults/main.yml
@@ -6,8 +6,8 @@ cgit_ip: 0.0.0.0
cgit_port: 1235
cgit_authenticate: false
-cgit__favicon: https://rgoncalves.se/logo.png
-cgit__logo: https://rgoncalves.se/logo.png
+cgit__favicon: https://rgoncalves.se/img/favicon.ico
+cgit__logo: https://rgoncalves.se/img/favicon.ico
cgit__css: https://rgoncalves.se/style/cgit.css
cgit__root_desc: development hub
cgit__root_readme: https://rgoncalves.se
diff --git a/roles/cgit/templates/cgitrc.j2 b/roles/cgit/templates/cgitrc.j2
index 2b01ef4..953494d 100644
--- a/roles/cgit/templates/cgitrc.j2
+++ b/roles/cgit/templates/cgitrc.j2
@@ -41,3 +41,12 @@ snapshots=tar.gz
section-from-path=1
section-sort=1
scan-path={{ cgit_git_dir }}
+
+# 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
remember that computers suck.