aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--salamina.scm13
1 files changed, 11 insertions, 2 deletions
diff --git a/salamina.scm b/salamina.scm
index 54da3ee..50eb782 100644
--- a/salamina.scm
+++ b/salamina.scm
@@ -46,8 +46,8 @@
((guix build-system python) #:select (default-python))
((guix gexp) #:select
- (gexp local-file file-append plain-file program-file
- mixed-text-file with-imported-modules))
+ (file-append gexp local-file mixed-text-file plain-file
+ program-file scheme-file))
((guix modules) #:select (source-module-closure))
((guix packages) #:select
(package-transitive-target-inputs package-version))
@@ -91,6 +91,7 @@
(name (string-append name "_module"))
(file (file-append httpd filename)))))
(list "cgid"
+ "env"
"logio"
"rewrite"
"ssl"
@@ -196,6 +197,12 @@
(format #f "~{.markdown-body h~a a~^,~%~} " (iota 6 1))
"{ color: #555 !important; }"))
+(define %httpd-gitconfig
+ (plain-file "gitconfig" "\
+[safe]
+ directory=*
+"))
+
(prepend %services
(simple-service 'cgit-http-virtualhost web:httpd-service-type
(list (web:httpd-virtualhost
@@ -211,6 +218,8 @@
Redirect permanent / https://git.koszko.org/
</If>
+ SetEnv GIT_CONFIG_GLOBAL " ,%httpd-gitconfig "
+
<Directory " ,(file-append git "/libexec/git-core") ">
Require all granted
SetEnv GIT_PROJECT_ROOT /var/lib/gitolite/repositories