commit 5a299569314b7d837a86c96b570cae1c19efde9b
parent 35dcde572bd7b2f1cdd34ac6edc20b5253699bc2
Author: bsandro <email@bsandro.tech>
Date: Sat, 20 Dec 2025 01:32:56 +0200
post-receive hook does gzip to utilize httpd compressed response support
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/repos/post-receive b/repos/post-receive
@@ -20,10 +20,13 @@ if [ ! -d "./${d}" ]; then
fi
cd "./${d}" || continue
stagit -u "${site_url}/${d}/" "${path_repos}/${r}"
+find . -type f -name '*.html' | xargs gzip -k -9 -f
ln -sf ../style.css
+ln -sf ../style.css.gz
ln -sf ../logo.png
ln -sf ../favicon.ico
ln -sf ../favicon.ico favicon.png
ln -sf log.html index.html
+ln -sf log.html.gz index.html.gz
echo "ok"