From 0ec552bba12f8bc2ab51db7af0042d09ad25a782 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 12 Mar 2024 03:23:04 -0400 Subject: cgit: Add custom logo Signed-off-by: Malfurious --- cgit/Dockerfile | 1 + cgit/cgitrc | 2 +- cgit/httpd.conf | 7 +++++++ cgit/logo.png | Bin 0 -> 5923 bytes 4 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 cgit/logo.png 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 + + AllowOverride None + Require all granted + + AllowOverride None Options ExecCGI FollowSymlinks Require all granted +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 Binary files /dev/null and b/cgit/logo.png differ -- cgit v1.2.3