Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
elasticsearch
Commits
daba59077a91
Commit
883bfbd0
authored
Aug 19, 2020
by
Arthur Lutz
Browse files
feat(ssl) : add CW_ELASTICSEARCH_VERIFY_CERTS which can be set to false to ignore ssl errors
parent
ea998b1f01ff
Pipeline
#18928
failed with stage
in 58 seconds
Changes
3
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
README.rst
View file @
daba5907
...
...
@@ -3,6 +3,13 @@ Summary
Simple ElasticSearch indexing integration for CubicWeb
Parameters
~~~~~~~~~~
* elasticsearch-locations (CW_ELASTICSEARCH_LOCATIONS)
* index-name (CW_INDEX_NAME)
* elasticsearch-verify-certs (CW_ELASTICSEARCH_VERIFY_CERTS)
Pyramid debug panel
~~~~~~~~~~~~~~~~~~~
...
...
cubicweb_elasticsearch/es.py
View file @
daba5907
...
...
@@ -156,6 +156,7 @@ def get_connection(config):
if
locations
:
# TODO sanitize locations
es
=
connections
.
create_connection
(
hosts
=
locations
.
split
(
','
),
verify_certs
=
config
[
'elasticsearch-verify-certs'
],
timeout
=
20
)
return
es
# TODO else ? raise KeyError - return None is OK?
cubicweb_elasticsearch/site_cubicweb.py
View file @
daba5907
...
...
@@ -17,4 +17,12 @@ options = (
'group'
:
'elasticsearch'
,
'level'
:
5
,
}),
(
'elasticsearch-verify-certs'
,
{
'type'
:
'yn'
,
'default'
:
True
,
'help'
:
'Elastic Search connection verify_certs variable'
'(set to false when using https with unknown or self-signed certificates)'
,
'group'
:
'elasticsearch'
,
'level'
:
5
,
}),
)
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