mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 10:13:13 +00:00
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'``.
This commit is contained in:
parent
9959d65d5a
commit
b26d711e56
1 changed files with 9 additions and 7 deletions
|
|
@ -183,17 +183,19 @@ The Elasticsearch backend is compatible with `Amazon Elasticsearch Service`_, bu
|
|||
|
||||
WAGTAILSEARCH_BACKENDS = {
|
||||
'default': {
|
||||
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch',
|
||||
'BACKEND': 'wagtail.wagtailsearch.backends.elasticsearch2',
|
||||
'INDEX': 'wagtail',
|
||||
'TIMEOUT': 5,
|
||||
'HOSTS': [{
|
||||
'host': 'YOURCLUSTER.REGION.es.amazonaws.com',
|
||||
'port': 443,
|
||||
'use_ssl': True,
|
||||
'verify_certs': True,
|
||||
'http_auth': AWS4Auth('ACCESS_KEY', 'SECRET_KEY', 'REGION', 'es'),
|
||||
'host': 'YOURCLUSTER.REGION.es.amazonaws.com',
|
||||
'port': 443,
|
||||
'use_ssl': True,
|
||||
'verify_certs': True,
|
||||
'http_auth': AWS4Auth('ACCESS_KEY', 'SECRET_KEY', 'REGION', 'es'),
|
||||
}],
|
||||
'connection_class': RequestsHttpConnection,
|
||||
'OPTIONS': {
|
||||
'connection_class': RequestsHttpConnection,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue