Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
course-discovery
Commits
01c86153
Commit
01c86153
authored
May 24, 2016
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #112 from edx/clintonb/ssl-es
Verifying SSL certificates for Elasticsearch
parents
87801d37
45835efd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
course_discovery/settings/production.py
+5
-0
requirements/production.txt
+1
-0
No files found.
course_discovery/settings/production.py
View file @
01c86153
...
@@ -3,6 +3,7 @@ import sys
...
@@ -3,6 +3,7 @@ import sys
from
logging.handlers
import
SysLogHandler
from
logging.handlers
import
SysLogHandler
from
os
import
environ
from
os
import
environ
import
certifi
import
yaml
import
yaml
from
course_discovery.settings.base
import
*
from
course_discovery.settings.base
import
*
...
@@ -63,6 +64,10 @@ DB_OVERRIDES = dict(
...
@@ -63,6 +64,10 @@ DB_OVERRIDES = dict(
HAYSTACK_CONNECTIONS
[
'default'
]
.
update
({
HAYSTACK_CONNECTIONS
[
'default'
]
.
update
({
'URL'
:
ELASTICSEARCH_URL
,
'URL'
:
ELASTICSEARCH_URL
,
'INDEX_NAME'
:
ELASTICSEARCH_INDEX_NAME
,
'INDEX_NAME'
:
ELASTICSEARCH_INDEX_NAME
,
'KWARGS'
:
{
'verify_certs'
:
True
,
'ca_certs'
:
certifi
.
where
(),
},
})
})
for
override
,
value
in
DB_OVERRIDES
.
items
():
for
override
,
value
in
DB_OVERRIDES
.
items
():
...
...
requirements/production.txt
View file @
01c86153
# Packages required in a production environment
# Packages required in a production environment
-r base.txt
-r base.txt
certifi==2016.2.28
gevent==1.1.1
gevent==1.1.1
gunicorn==19.4.5
gunicorn==19.4.5
mysqlclient==1.3.7
mysqlclient==1.3.7
...
...
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