summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-03-12 03:23:04 -0400
committerMalfurious <m@lfurio.us>2024-03-12 03:23:04 -0400
commit0ec552bba12f8bc2ab51db7af0042d09ad25a782 (patch)
tree1ed7993fe73b121f5a248cf64464af95751c055f
parent505e52aa3dd44b94a878c7a7e906263535e1df56 (diff)
downloadsrcnode-0ec552bba12f8bc2ab51db7af0042d09ad25a782.tar.gz
srcnode-0ec552bba12f8bc2ab51db7af0042d09ad25a782.zip
cgit: Add custom logo
Signed-off-by: Malfurious <m@lfurio.us>
-rw-r--r--cgit/Dockerfile1
-rw-r--r--cgit/cgitrc2
-rw-r--r--cgit/httpd.conf7
-rw-r--r--cgit/logo.pngbin0 -> 5923 bytes
4 files changed, 9 insertions, 1 deletions
diff --git a/cgit/Dockerfile b/cgit/Dockerfile
index 9e1c442..cb76fa9 100644
--- a/cgit/Dockerfile
+++ b/cgit/Dockerfile
@@ -7,6 +7,7 @@ RUN apk --no-cache add apache2 cgit
COPY httpd.conf /etc/apache2/
COPY cgitrc /etc/
+COPY logo.png /usr/share/normalmode/
EXPOSE 80
CMD ["/usr/sbin/httpd", "-DFOREGROUND"]
diff --git a/cgit/cgitrc b/cgit/cgitrc
index 34bbe81..c4304a9 100644
--- a/cgit/cgitrc
+++ b/cgit/cgitrc
@@ -4,7 +4,7 @@
# possible todos: header, footer
css=/cgit.css
-logo=/cgit.png
+logo=/logo.png
logo-link=/
root-title=NormalMode.org Repositories
diff --git a/cgit/httpd.conf b/cgit/httpd.conf
index e8ee772..cd36af4 100644
--- a/cgit/httpd.conf
+++ b/cgit/httpd.conf
@@ -22,12 +22,19 @@ LogLevel warn
Require all denied
</Directory>
+<Directory "/usr/share/normalmode/">
+ AllowOverride None
+ Require all granted
+</Directory>
+
<Directory "/usr/share/webapps/cgit/">
AllowOverride None
Options ExecCGI FollowSymlinks
Require all granted
</Directory>
+Alias /logo.png "/usr/share/normalmode/logo.png"
+
Alias /cgit.css "/usr/share/webapps/cgit/cgit.css"
Alias /cgit.png "/usr/share/webapps/cgit/cgit.png"
Alias /favicon.ico "/usr/share/webapps/cgit/favicon.ico"
diff --git a/cgit/logo.png b/cgit/logo.png
new file mode 100644
index 0000000..4746a72
--- /dev/null
+++ b/cgit/logo.png
Binary files differ