Skip to content
Snippets Groups Projects
Commit 6252951c authored by Wes Gurney's avatar Wes Gurney
Browse files

Added support to configure webhook_timeout in gitlab.yaml

parent 25a723c3
No related branches found
No related tags found
2 merge requests!5296Webhook fix,!4954Add support to configure webhook_timeout in gitlab.yaml
Loading
Loading
@@ -17,7 +17,7 @@ class WebHook < ActiveRecord::Base
attr_accessible :url
 
# HTTParty timeout
default_timeout 10
default_timeout Gitlab.config.gitlab.webhook_timeout
 
validates :url, presence: true,
format: { with: URI::regexp(%w(http https)), message: "should be a valid url" }
Loading
Loading
Loading
Loading
@@ -58,6 +58,9 @@ production: &base
wiki: true
wall: false
snippets: false
## Webhook settings
# webhook_timeout: 30 # default: 10 - Number of seconds to wait for HTTP response after sending webhook HTTP POST request
 
## External issues trackers
issues_tracker:
Loading
Loading
Loading
Loading
@@ -70,6 +70,7 @@ Settings.gitlab['signup_enabled'] ||= false
Settings.gitlab['username_changing_enabled'] = true if Settings.gitlab['username_changing_enabled'].nil?
Settings.gitlab['issue_closing_pattern'] = '^([Cc]loses|[Ff]ixes) #(\d+)' if Settings.gitlab['issue_closing_pattern'].nil?
Settings.gitlab['default_projects_features'] ||= {}
Settings.gitlab['webhook_timeout'] ||= 10
Settings.gitlab.default_projects_features['issues'] = true if Settings.gitlab.default_projects_features['issues'].nil?
Settings.gitlab.default_projects_features['merge_requests'] = true if Settings.gitlab.default_projects_features['merge_requests'].nil?
Settings.gitlab.default_projects_features['wiki'] = true if Settings.gitlab.default_projects_features['wiki'].nil?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment