kopia lustrzana https://github.com/wagtail/wagtail
Update docs for Amazon ElasticSearch service as backend.
This change moves the "connection_class" key into "OPTIONS", resolving error ``AttributeError: 'AWS4Auth' object has no attribute 'encode'``.pull/3787/head
rodzic
67bc54f628
commit
5301010474
|
@ -183,17 +183,19 @@ The Elasticsearch backend is compatible with `Amazon Elasticsearch Service`_, bu
|
||||||
|
|
||||||
WAGTAILSEARCH_BACKENDS = {
|
WAGTAILSEARCH_BACKENDS = {
|
||||||
'default': {
|
'default': {
|
||||||
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch',
|
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch2',
|
||||||
'INDEX': 'wagtail',
|
'INDEX': 'wagtail',
|
||||||
'TIMEOUT': 5,
|
'TIMEOUT': 5,
|
||||||
'HOSTS': [{
|
'HOSTS': [{
|
||||||
'host': 'YOURCLUSTER.REGION.es.amazonaws.com',
|
'host': 'YOURCLUSTER.REGION.es.amazonaws.com',
|
||||||
'port': 443,
|
'port': 443,
|
||||||
'use_ssl': True,
|
'use_ssl': True,
|
||||||
'verify_certs': True,
|
'verify_certs': True,
|
||||||
'http_auth': AWS4Auth('ACCESS_KEY', 'SECRET_KEY', 'REGION', 'es'),
|
'http_auth': AWS4Auth('ACCESS_KEY', 'SECRET_KEY', 'REGION', 'es'),
|
||||||
}],
|
}],
|
||||||
'connection_class': RequestsHttpConnection,
|
'OPTIONS': {
|
||||||
|
'connection_class': RequestsHttpConnection,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue