Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Pass certifi.where() to Elasticsearch2SearchEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
symroe committed Jun 24, 2019
1 parent 9ab2ce3 commit 6656b37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp_settings/production.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Only set this to True in development environments
import certifi
DEBUG = False
CAN_EDIT_ELECTIONS = False

Expand Down Expand Up @@ -31,6 +32,11 @@
'ENGINE': 'haystack.backends.elasticsearch2_backend.Elasticsearch2SearchEngine',
'URL': '{{ AWS_EX_URL }}',
'INDEX_NAME': 'ynr_prod',
'KWARGS': {
# pass CA cert info to urllib3 to be able to verify connection certificates
'verify_certs': True,
'ca_certs': certifi.where()
}
},
}

Expand Down

0 comments on commit 6656b37

Please sign in to comment.