summaryrefslogtreecommitdiff
path: root/deployment/services/cgit.scm
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/services/cgit.scm')
-rw-r--r--deployment/services/cgit.scm29
1 files changed, 12 insertions, 17 deletions
diff --git a/deployment/services/cgit.scm b/deployment/services/cgit.scm
index 8ff6662..e44252f 100644
--- a/deployment/services/cgit.scm
+++ b/deployment/services/cgit.scm
@@ -6,6 +6,8 @@
#:use-module (gnu services)
#:use-module (gnu services cgit)
#:use-module (gnu services web)
+ #:use-module ((deployment services version-control)
+ #:prefix deployment:services:version-control:)
#:use-module ((deployment services web)
#:prefix deployment:services:web:)
#:use-module ((gnu packages version-control)
@@ -18,11 +20,6 @@
(hide? #t)
(path "/srv/git/marek/packages")))
-(define git-http-configuration
- (gnu:services:version-control:git-http-configuration
- (git-root "/var/lib/gitolite/repositories")
- (uri-path "/git")))
-
(define nginx-location-cgit
(nginx-location-configuration
(body (list "fastcgi_param HTTP_HOST $server_name ;"
@@ -33,18 +30,16 @@
(uri "@cgit")))
(define nginx-server-cgit
- (let
- ((git-http- (gnu:services:version-control:git-http-nginx-location-configuration git-http-configuration)))
- (nginx-server-configuration
- (locations (list git-http-
- nginx-location-cgit
- deployment:services:web:nginx-location-well-known))
- (listen (list "192.168.10.2:443 ssl"))
- (root gnu:packages:version-control:cgit)
- (server-name (list "git.marekpasnikowski.pl"))
- (ssl-certificate "/etc/letsencrypt/live/marekpasnikowski.pl/fullchain.pem")
- (ssl-certificate-key "/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem")
- (try-files (list "$uri" "@cgit")))))
+ (nginx-server-configuration
+ (locations (list deployment:services:version-control:aisaka-git-http-nginx-location
+ nginx-location-cgit
+ deployment:services:web:nginx-location-well-known))
+ (listen (list "192.168.10.2:443 ssl"))
+ (root gnu:packages:version-control:cgit)
+ (server-name (list "git.marekpasnikowski.pl"))
+ (ssl-certificate "/etc/letsencrypt/live/marekpasnikowski.pl/fullchain.pem")
+ (ssl-certificate-key "/etc/letsencrypt/live/marekpasnikowski.pl/privkey.pem")
+ (try-files (list "$uri" "@cgit"))))
(define nginx-extension-of-cgit
(service-extension deployment:services:web:nginx-service-type*