diff options
author | Timo Wilken | 2023-05-25 21:59:51 +0200 |
---|---|---|
committer | Timo Wilken | 2023-05-25 23:25:19 +0200 |
commit | d1f7625da1e130f155bdb19ea114dc4db92d6905 (patch) | |
tree | aae5349989968809093c838618649a7004ef6fd5 /tw/system/lud.scm | |
parent | 44a6bc36240e638fb6f5054321bdd21c2c5e97cc (diff) |
Publish git repositories on lud
Diffstat (limited to 'tw/system/lud.scm')
-rw-r--r-- | tw/system/lud.scm | 10 |
1 files changed, 9 insertions, 1 deletions
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 |