Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-notes-api
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
edx-notes-api
Commits
7ff2eae5
Unverified
Commit
7ff2eae5
authored
Jun 06, 2018
by
Troy Sankey
Committed by
GitHub
Jun 06, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #57 from edx/pwnage101/add-devstack-settings
add settings for devstack
parents
a177da49
c74319b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
notesserver/settings/devstack.py
+29
-0
No files found.
notesserver/settings/devstack.py
0 → 100644
View file @
7ff2eae5
from
.common
import
*
from
notesserver.settings.logger
import
get_logger_config
DEBUG
=
True
ALLOWED_HOSTS
=
[
'*'
]
LOGGING
=
get_logger_config
(
debug
=
DEBUG
,
dev_env
=
True
,
local_loglevel
=
'DEBUG'
)
del
LOGGING
[
'handlers'
][
'local'
]
# These values are derived from provision-ida-user.sh in the edx/devstack repo.
CLIENT_ID
=
'edx_notes_api-key'
CLIENT_SECRET
=
'edx_notes_api-secret'
ES_INDEXES
=
{
'default'
:
'notes_index'
}
HAYSTACK_CONNECTIONS
[
'default'
][
'URL'
]
=
'http://edx.devstack.elasticsearch:9200/'
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.mysql'
,
'NAME'
:
os
.
environ
.
get
(
'DB_NAME'
,
'notes'
),
'USER'
:
os
.
environ
.
get
(
'DB_USER'
,
'notes001'
),
'PASSWORD'
:
os
.
environ
.
get
(
'DB_PASSWORD'
,
'password'
),
'HOST'
:
os
.
environ
.
get
(
'DB_HOST'
,
'edx.devstack.mysql'
),
'PORT'
:
os
.
environ
.
get
(
'DB_PORT'
,
3306
),
'CONN_MAX_AGE'
:
60
,
}
}
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