diff options
author | W. Kosior <koszko@koszko.org> | 2024-09-25 14:54:33 +0200 |
---|---|---|
committer | W. Kosior <koszko@koszko.org> | 2024-09-25 15:02:59 +0200 |
commit | 289d84f1eb686c6b56e53e6f656b7f4dec78f48a (patch) | |
tree | b3da4f2b825f9b6fdcdb5227c08c68940936f390 /salamina.scm | |
parent | 17c496d26351215ef3cfc38991ecf3688b88a350 (diff) | |
download | koszko-org-guix-server-289d84f1eb686c6b56e53e6f656b7f4dec78f48a.tar.gz koszko-org-guix-server-289d84f1eb686c6b56e53e6f656b7f4dec78f48a.zip |
Fix git clone via HTTPs.
Diffstat (limited to 'salamina.scm')
-rw-r--r-- | salamina.scm | 13 |
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 |