Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
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-video-pipeline
Commits
0ee6c021
Commit
0ee6c021
authored
Feb 14, 2018
by
muhammad-ammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update settings
parent
cbc5b4b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
VEDA/settings/production.py
+13
-0
No files found.
VEDA/settings/production.py
View file @
0ee6c021
"""
Production environment settings.
"""
from
os
import
environ
from
VEDA.settings.base
import
*
from
VEDA.utils
import
get_config
from
VEDA.settings.utils
import
get_logger_config
...
...
@@ -35,3 +36,15 @@ JWT_AUTH = {
'JWT_AUDIENCE'
:
CONFIG_DATA
[
'val_client_id'
],
'JWT_VERIFY_AUDIENCE'
:
True
,
}
DB_OVERRIDES
=
dict
(
PASSWORD
=
environ
.
get
(
'DB_MIGRATION_PASS'
,
DATABASES
[
'default'
][
'PASSWORD'
]),
ENGINE
=
environ
.
get
(
'DB_MIGRATION_ENGINE'
,
DATABASES
[
'default'
][
'ENGINE'
]),
USER
=
environ
.
get
(
'DB_MIGRATION_USER'
,
DATABASES
[
'default'
][
'USER'
]),
NAME
=
environ
.
get
(
'DB_MIGRATION_NAME'
,
DATABASES
[
'default'
][
'NAME'
]),
HOST
=
environ
.
get
(
'DB_MIGRATION_HOST'
,
DATABASES
[
'default'
][
'HOST'
]),
PORT
=
environ
.
get
(
'DB_MIGRATION_PORT'
,
DATABASES
[
'default'
][
'PORT'
]),
)
for
override
,
value
in
DB_OVERRIDES
.
items
():
DATABASES
[
'default'
][
override
]
=
value
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