From 4bda6a736f68c0608a8e5da410d1935839dc4497 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Wed, 29 Nov 2023 23:35:52 +0100 Subject: Fix cgit clone prefixes --- tw/system/lud.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tw/system/lud.scm b/tw/system/lud.scm index 2c8c7fef..3c0d814b 100644 --- a/tw/system/lud.scm +++ b/tw/system/lud.scm @@ -91,6 +91,7 @@ (user-path "src"))) ;; Serve public-access git repos over HTTPS and private ones over SSH only. + ;; TODO: in order to see repos, cgit needs "setfacl -m u:fcgiwrap:rx /srv/git" (service cgit-service-type (cgit-configuration (branch-sort "age") @@ -101,8 +102,8 @@ that I just want to host somewhere.") (repository-directory "/srv/git") (strict-export "git-daemon-export-ok") ; require presence of this file to show repo (remove-suffix? #t) ; remove trailing .git in name and URL - (clone-prefix '("https://git.twilken.net/" - "git@git.twilken.net:")) + (clone-prefix '("https://git.twilken.net" + "ssh://git@git.twilken.net:22022/~")) (enable-http-clone? #t) ; avoid having to run git-daemon as well (noplainemail? #t) ; hide email addresses in web interface (nginx -- cgit v1.2.3