From 36ba24478a4493389cac1f5233b10eab909bceba Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Sun, 5 Jan 2025 15:32:46 +0100
Subject: feat: support libravatar

---
 Containerfile | 3 ++-
 image/cgitrc  | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/Containerfile b/Containerfile
index 352b6b9..7e8b920 100644
--- a/Containerfile
+++ b/Containerfile
@@ -17,7 +17,8 @@ RUN apk upgrade --no-cache && \
             fcgiwrap \
             sudo zsh openrc \
             libcap \
-            lzip
+            lzip \
+	    lua5.4 lua5.4-ossl
 
 ADD image/prepare-container.sh /usr/local/bin/prepare-container.sh
 ADD image/fcgiwrap-launcher /usr/local/bin/fcgiwrap-launcher
diff --git a/image/cgitrc b/image/cgitrc
index 5054a5f..87d1b9c 100644
--- a/image/cgitrc
+++ b/image/cgitrc
@@ -40,6 +40,9 @@ root-desc=Some information...
 # Allow download of tar.gz, tar.bz2, tar.lz and zip-files
 snapshots=tar.gz tar.bz2 tar.lz zip
 
+# Show libravatar
+email-filter=lua5.4 /usr/lib/cgit/filters/email-libravatar.lua
+
 robots=noindex, nofollow
 enable-git-config=1
 #source-filter=/opt/highlight.sh
-- 
cgit v1.2.3