From d1f7625da1e130f155bdb19ea114dc4db92d6905 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Thu, 25 May 2023 21:59:51 +0200 Subject: Publish git repositories on lud --- tw/system/lud.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tw/system/lud.scm') diff --git a/tw/system/lud.scm b/tw/system/lud.scm index 846f29d0..1fa2ca57 100644 --- a/tw/system/lud.scm +++ b/tw/system/lud.scm @@ -13,7 +13,7 @@ (use-package-modules admin bash certs databases linux man php python rsync shells tls tor video) (use-service-modules certbot databases file-sharing mcron monitoring - networking pm ssh syncthing vpn web) + networking pm ssh syncthing version-control vpn web) (define efi-system-partition ; /dev/sda1 (uuid "51F3-FB71" 'fat32)) @@ -87,6 +87,14 @@ SSLSessionCacheTimeout 1200 (thermald-configuration (adaptive? #t))) + ;; Allow anonymous git access via Wireguard, e.g. to this channel's git repo. + ;; Repos are only published if they contain a `git-daemon-export-ok' file. + (service git-daemon-service-type + (git-daemon-configuration + (listen (list (server-wireguard-address host-name))) + ;; git://lud.wg/~user/repo.git => /home/user/src/repo.git + (user-path "src"))) + ;; Transmission (torrents) (service transmission-daemon-service-type (transmission-daemon-configuration -- cgit v1.2.3