summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Wilken2023-11-29 23:35:52 +0100
committerTimo Wilken2023-11-29 23:35:52 +0100
commit4bda6a736f68c0608a8e5da410d1935839dc4497 (patch)
tree3c22307da351f1fb9f5776e7eb69f9bcb42f57d5
parent6a7ed174aac8ab1583ac4ae62e8a482d3d67ffd7 (diff)
Fix cgit clone prefixes
-rw-r--r--tw/system/lud.scm5
1 files 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