Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ce4defaf
Commit
ce4defaf
authored
Sep 15, 2015
by
Valery Sizov
Committed by
Valery Sizov
Sep 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable SSL by default
parent
480e713c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
app/models/hooks/web_hook.rb
app/models/hooks/web_hook.rb
+1
-1
db/migrate/20150915001905_enable_ssl_verification_by_default.rb
...rate/20150915001905_enable_ssl_verification_by_default.rb
+5
-0
db/migrate/20150916000405_enable_ssl_verification_for_web_hooks.rb
...e/20150916000405_enable_ssl_verification_for_web_hooks.rb
+8
-0
db/schema.rb
db/schema.rb
+2
-3
No files found.
app/models/hooks/web_hook.rb
View file @
ce4defaf
...
...
@@ -25,7 +25,7 @@ class WebHook < ActiveRecord::Base
default_value_for
:note_events
,
false
default_value_for
:merge_requests_events
,
false
default_value_for
:tag_push_events
,
false
default_value_for
:enable_ssl_verification
,
fals
e
default_value_for
:enable_ssl_verification
,
tru
e
# HTTParty timeout
default_timeout
Gitlab
.
config
.
gitlab
.
webhook_timeout
...
...
db/migrate/20150915001905_enable_ssl_verification_by_default.rb
0 → 100644
View file @
ce4defaf
class
EnableSslVerificationByDefault
<
ActiveRecord
::
Migration
def
change
change_column
:web_hooks
,
:enable_ssl_verification
,
:boolean
,
default:
true
end
end
db/migrate/20150916000405_enable_ssl_verification_for_web_hooks.rb
0 → 100644
View file @
ce4defaf
class
EnableSslVerificationForWebHooks
<
ActiveRecord
::
Migration
def
up
execute
(
"UPDATE web_hooks SET enable_ssl_verification = true"
)
end
def
down
end
end
db/schema.rb
View file @
ce4defaf
...
...
@@ -11,8 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20150916145038
)
do
ActiveRecord
::
Schema
.
define
(
version:
20150916000405
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -782,7 +781,7 @@ ActiveRecord::Schema.define(version: 20150916145038) do
t
.
boolean
"merge_requests_events"
,
default:
false
,
null:
false
t
.
boolean
"tag_push_events"
,
default:
false
t
.
boolean
"note_events"
,
default:
false
,
null:
false
t
.
boolean
"enable_ssl_verification"
,
default:
fals
e
t
.
boolean
"enable_ssl_verification"
,
default:
tru
e
end
add_index
"web_hooks"
,
[
"created_at"
,
"id"
],
name:
"index_web_hooks_on_created_at_and_id"
,
using: :btree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment