diff options
Diffstat (limited to 'manifests/site.pp')
-rw-r--r-- | manifests/site.pp | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/manifests/site.pp b/manifests/site.pp index f59bbb4..e2338d1 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -365,14 +365,21 @@ node 'hornquist.se' { }.join("\n") } - nginx::resource::location { '~ \.git$': - server => 'cgit', - www_root => $cgit::scan_path, - ssl_only => true, + nginx::resource::location { '~ \.git(/.*)': + server => 'cgit', + ssl_only => true, location_cfg_append => { auth_basic => '"CGit login"', auth_basic_user_file => $cgit_htpasswd, }, + 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 { '/': |