Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
ae3cd844
Commit
ae3cd844
authored
Feb 07, 2019
by
Joren Vrancken
Browse files
Merge branch 'fix-818-secret-key' into 'master'
Remove SECRET_KEY from production.py Closes
#818
See merge request
!1146
parents
2df5bfa3
fa78382a
Changes
2
Hide whitespace changes
Inline
Side-by-side
docker-compose.yml
View file @
ae3cd844
...
...
@@ -22,6 +22,7 @@ services:
<<
:
*postgresvars
DJANGO_DEBUG
:
'
True'
DJANGO_POSTGRES_HOST
:
postgres
DJANGO_SECRET
:
'
do_not_use_in_prod'
volumes
:
concrexit
:
...
...
website/thaliawebsite/settings/production.py
View file @
ae3cd844
...
...
@@ -24,9 +24,7 @@ BASE_DIR = os.path.abspath(os.path.join(
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY
=
os
.
environ
.
get
(
'DJANGO_SECRET'
,
'#o-0d1q5&^&06tn@8pr1f(n3$crafd++^%sacao7hj*ea@c)^t'
)
SECRET_KEY
=
os
.
environ
.
get
(
'DJANGO_SECRET'
)
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
os
.
environ
.
get
(
'DJANGO_DEBUG'
)
==
'True'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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