Add configurable Timeout settings on git vhost
Under certain situations it can be good to force a higher timeout for git vhost. Add the possibility to send that parameter on the manifest, and ignore if no timeout is set. Change-Id: Ib74b5b5182e583dd7fa586f244174e41681636c8
This commit is contained in:
parent
862c4fb471
commit
adbe6aef57
@ -27,6 +27,7 @@ class cgit(
|
||||
$ssl_key_file_contents = '', # If left empty puppet will not create file.
|
||||
$ssl_chain_file_contents = '', # If left empty puppet will not create file.
|
||||
$behind_proxy = false,
|
||||
$cgit_timeout = false,
|
||||
) {
|
||||
|
||||
if $behind_proxy == true {
|
||||
|
@ -24,6 +24,10 @@
|
||||
|
||||
ErrorLog /var/log/httpd/git-error.log
|
||||
|
||||
<% if scope.lookupvar("cgit::cgit_timeout").is_a? Integer %>
|
||||
Timeout <%= scope.lookupvar("cgit::cgit_timeout") %>
|
||||
<% end %>
|
||||
|
||||
LogLevel warn
|
||||
|
||||
CustomLog /var/log/httpd/git-access.log combined
|
||||
|
Loading…
Reference in New Issue
Block a user