From ea16389b369ce782e7e722e0b2c4e48273210b12 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 5 Dec 2025 22:50:42 -0800 Subject: Add README --- Dockerfile | 5 +++-- cgitrc | 14 +++++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b86162..3f2f33a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ openssh-server \ locales \ + highlight \ && rm -rf /var/lib/apt/lists/* # Generate locale to fix git locale warnings @@ -49,8 +50,8 @@ RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen COPY --from=build_stage /var/www/html/cgit /var/www/html/cgit -# Ensure filters are executable and use correct Python interpreter -RUN chmod +x /var/www/html/cgit/filters/*.py 2>/dev/null || true && \ +# Ensure filters are executable and use correct interpreters +RUN chmod +x /var/www/html/cgit/filters/* 2>/dev/null || true && \ sed -i 's|#!/usr/bin/env python$|#!/usr/bin/env python3|g' /var/www/html/cgit/filters/*.py 2>/dev/null || true && \ sed -i 's|#!/usr/bin/python$|#!/usr/bin/python3|g' /var/www/html/cgit/filters/*.py 2>/dev/null || true diff --git a/cgitrc b/cgitrc index 7c11ae5..f66d3a3 100644 --- a/cgitrc +++ b/cgitrc @@ -13,9 +13,17 @@ snapshots=tar.gz zip enable-http-clone=1 enable-index-owner=0 -scan-path=/var/lib/git/repositories - -source-filter=/var/www/html/cgit/filters/syntax-highlighting.py +source-filter=/var/www/html/cgit/filters/syntax-highlighting.sh about-filter=/var/www/html/cgit/filters/about-formatting.sh +enable-commit-graph=1 +enable-blame=1 +enable-log-filecount=1 +readme=:README.md +readme=:readme.md +readme=:README +readme=:readme + +# Repository discovery - settings above apply to repos found here +scan-path=/var/lib/git/repositories virtual-root=/ -- cgit v1.2.3-70-g09d2