angine

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 02c86dbd4efbf1f20d8032a8c984a739320d74e6
parent 707c85edad39ed2a5eef5b049cc5322a6e8738c3
Author: Adriel Dumas--Jondeau <leirda@disroot.org>
Date:   Thu,  6 Jun 2024 20:38:49 +0200

Add a `git-http-backend' configuration block to `nginx'

Diffstat:
Mangine/system.scm | 18+++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/angine/system.scm b/angine/system.scm @@ -91,7 +91,23 @@ (ssl-privkey %puny-domain)) (raw-content `(("access_log /dev/null;"))) - (root (string-append "/srv/" %domain))))))) + (root (string-append "/srv/" %domain))) + (nginx-server-configuration + (server-name (list %puny-forge)) + (listen (list "443 ssl")) + (ssl-certificate (ssl-cert %puny-domain)) + (ssl-certificate-key + (ssl-privkey %puny-domain)) + (raw-content + `(("access_log /root/nginx-git.log;"))) + (root (string-append "/srv/" %forge)) + (locations + (list + (git-http-nginx-location-configuration + (git-http-configuration + (uri-path "git") + (export-all? #t) + (git-root "/var/lib/gitolite/repositories")))))))))) (service gitolite-service-type (gitolite-configuration