# HG changeset patch # User Richard Westhaver # Date 1726101642 14400 # Node ID 39b9bcb13cade6c20c19bd4775575f0c55af3540 # Parent cdffdb9777dd321e5a76e63d95098d8b8815d105 cgit diff -r cdffdb9777dd -r 39b9bcb13cad Caddyfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Caddyfile Wed Sep 11 20:40:42 2024 -0400 @@ -0,0 +1,15 @@ +{ +admin off +} +http://rurik/packy/* { +reverse_proxy unix//run/fcgiwrap.sock { + transport fastcgi { + env SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi + } +} + +handle_path /assets/* { + root * /usr/share/webapps/cgit + file_server +} +} \ No newline at end of file diff -r cdffdb9777dd -r 39b9bcb13cad cgitrc --- a/cgitrc Tue Sep 03 21:52:32 2024 -0400 +++ b/cgitrc Wed Sep 11 20:40:42 2024 -0400 @@ -2,19 +2,11 @@ # cgit config # -css=/cgit.css -logo=/cgit.png - -# Following lines work with the above Apache config -#css=/cgit-css/cgit.css -#logo=/cgit-css/cgit.png - -# Following lines work with the above Lighttpd config -#css=/cgit/cgit.css -#logo=/cgit/cgit.png +css=/assets/cgit.css +logo=/assets/cgit.png # Allow http transport git clone -#enable-http-clone=0 +enable-http-clone=1 # if you do not want that webcrawler (like google) index your site diff -r cdffdb9777dd -r 39b9bcb13cad serve.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/serve.sh Wed Sep 11 20:40:42 2024 -0400 @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +& hg serve --web-conf hgweb.conf +caddy run --config Caddyfile