From 2cec46d3b9e269a70facca48a7b3cd10233f2512 Mon Sep 17 00:00:00 2001 From: Michal Holub <holub.michal@gmail.com> Date: Fri, 16 Mar 2018 14:46:37 +0100 Subject: [PATCH] removed default secret key from settings --- Dockerfile | 2 +- openlobby/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec15ae7..188f09f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/openlobby/settings.py b/openlobby/settings.py index ea44c18..034304d 100644 --- a/openlobby/settings.py +++ b/openlobby/settings.py @@ -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' -- GitLab