summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-29 23:55:36 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-30 00:06:45 +0100
commit4f6f6ba4bf686bb533e88909b863a1fb09f970e6 (patch)
tree15943b76c6b0652ffb7c2a448f429252a2389b40
parentcgit smart. (diff)
downloadwebdav_server-4f6f6ba4bf686bb533e88909b863a1fb09f970e6.tar.gz
webdav_server-4f6f6ba4bf686bb533e88909b863a1fb09f970e6.tar.xz
Public repos.?
-rw-r--r--manifests/site.pp18
1 files changed, 17 insertions, 1 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index e2338d1..1fca9eb 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -365,7 +365,23 @@ node 'hornquist.se' {
}.join("\n")
}
- nginx::resource::location { '~ \.git(/.*)':
+ nginx::resource::location {
+ $cgit::public_repos.map |$repo| { "~ ^(/${repo}\\.git/.*)" }:
+ server => 'cgit',
+ ssl_only => true,
+ priority => 450,
+ fastcgi => 'unix:/run/fcgiwrap.socket',
+ fastcgi_params => 'fastcgi_params',
+ fastcgi_param => {
+ 'SCRIPT_FILENAME' => '/usr/lib/git-core/git-http-backend',
+ 'GIT_PROJECT_ROOT' => '/home/git/git',
+ 'GIT_HTTP_EXPORT_ALL' => '""',
+ 'PATH_INFO' => '$1',
+ }
+ }
+
+
+ nginx::resource::location { '~ (.*\.git/.*)':
server => 'cgit',
ssl_only => true,
location_cfg_append => {