Skip to content
Snippets Groups Projects
Commit 2cec46d3 authored by Michal Holub's avatar Michal Holub
Browse files

removed default secret key from settings

parent f018f7b3
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ RUN pip install -r requirements.txt && \
ADD . /code/
RUN DATABASE_URL=none python manage.py collectstatic --noinput
RUN DATABASE_URL=none SECRET_KEY=xxx python manage.py collectstatic --noinput
COPY conf/supervisor.conf /etc/supervisor/conf.d/supervisor.conf
COPY conf/nginx.conf /etc/nginx/conf.d/openlobby-server.conf
......
......@@ -8,7 +8,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
DEBUG = 'DEBUG' in os.environ
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get('SECRET_KEY','very-secret-key')
SECRET_KEY = os.environ.get('SECRET_KEY')
if not SECRET_KEY:
if DEBUG:
SECRET_KEY = 'not-secret-at-all'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment