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
0c0fc4819f01
Commit
02bef86b
authored
Feb 08, 2021
by
Arthur Lutz
Browse files
[es] add ssl-show-warn setting for cnx
parent
9296dc33b53d
Pipeline
#33682
passed with stage
in 1 minute and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_elasticsearch/es.py
View file @
0c0fc481
...
...
@@ -157,6 +157,7 @@ def get_connection(config):
es
=
connections
.
create_connection
(
hosts
=
locations
.
split
(
","
),
verify_certs
=
config
[
"elasticsearch-verify-certs"
],
ssl_show_warn
=
config
[
"elasticsearch-ssl-show-warn"
],
timeout
=
20
,
)
return
es
...
...
cubicweb_elasticsearch/site_cubicweb.py
View file @
0c0fc481
...
...
@@ -34,4 +34,15 @@ options = (
"level"
:
5
,
},
),
(
"elasticsearch-ssl-show-warn"
,
{
"type"
:
"yn"
,
"default"
:
True
,
"help"
:
"Elastic Search connection ssl-show-warn variable"
"(set to no if you want to suppress ssl warnings when verify cert is no"
,
"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