Commit 8be6c74a authored by Job van der Voort's avatar Job van der Voort

documentation on ssl verification in web hooks

parent 8ae026a6
...@@ -6,7 +6,12 @@ You can configure web hooks to listen for specific events like pushes, issues or ...@@ -6,7 +6,12 @@ You can configure web hooks to listen for specific events like pushes, issues or
Web hooks can be used to update an external issue tracker, trigger CI builds, update a backup mirror, or even deploy to your production server. Web hooks can be used to update an external issue tracker, trigger CI builds, update a backup mirror, or even deploy to your production server.
If you send a web hook to an SSL endpoint [the certificate will not be verified](https://gitlab.com/gitlab-org/gitlab-ce/blob/ccd617e58ea71c42b6b073e692447d0fe3c00be6/app/models/web_hook.rb#L35) since many people use self-signed certificates. ## SSL Verification
Web hooks do SSL verification by default.
You can turn this off in the web hook settings in your GitLab projects.
![SSL Verification](ssl.png)
## Push events ## Push events
...@@ -34,7 +39,7 @@ X-Gitlab-Event: Push Hook ...@@ -34,7 +39,7 @@ X-Gitlab-Event: Push Hook
"name": "Diaspora", "name": "Diaspora",
"url": "git@example.com:mike/diasporadiaspora.git", "url": "git@example.com:mike/diasporadiaspora.git",
"description": "", "description": "",
"homepage": "http://example.com/mike/diaspora", "homepage": "http://example.com/mike/diaspora",
"git_http_url":"http://example.com/mike/diaspora.git", "git_http_url":"http://example.com/mike/diaspora.git",
"git_ssh_url":"git@example.com:mike/diaspora.git", "git_ssh_url":"git@example.com:mike/diaspora.git",
"visibility_level":0 "visibility_level":0
...@@ -513,8 +518,8 @@ server.mount_proc '/' do |req, res| ...@@ -513,8 +518,8 @@ server.mount_proc '/' do |req, res|
puts req.body puts req.body
end end
trap 'INT' do trap 'INT' do
server.shutdown server.shutdown
end end
server.start server.start
``` ```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment