summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Lathwood <neil@lathwood.co.uk>2016-11-19 15:56:52 +0000
committerNeil Lathwood <neil@lathwood.co.uk>2016-11-19 15:56:52 +0000
commit44574426d076c15f67ee9738b1c8c86d71910cce (patch)
tree643ce58b4137353eedc6c5ae132aeceed91e20aa
parent59e82bba2befb6ef5049ea9ae4e876327f3da158 (diff)
Updated config options
-rw-r--r--README.md4
-rw-r--r--lib/oxidized/source/http.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index a1aee03..ea70c47 100644
--- a/README.md
+++ b/README.md
@@ -506,7 +506,7 @@ source:
X-Auth-Token: 'somerandomstring'
```
-You can also pass `no_check_certificate = true` if you want to disable ssl certificate verification:
+You can also pass `secure: false` if you want to disable ssl certificate verification:
```
source:
@@ -514,7 +514,7 @@ source:
http:
url: https://url/api
scheme: https
- no_check_certificate: true
+ secure: false
```
### Output: File
diff --git a/lib/oxidized/source/http.rb b/lib/oxidized/source/http.rb
index 6f16aee..4fd388b 100644
--- a/lib/oxidized/source/http.rb
+++ b/lib/oxidized/source/http.rb
@@ -20,7 +20,7 @@ class HTTP < Source
uri = URI.parse(@cfg.url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true if uri.scheme == 'https'
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE if uri.no_check_certificate == true
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless @cfg.secure
# map headers
headers = {}