From 0bab395fd30ed37eeb54cbae24ec59f77e03b8a2 Mon Sep 17 00:00:00 2001 From: meeb Date: Mon, 14 Dec 2020 02:21:30 +1100 Subject: [PATCH] fix container secret key to a default --- tubesync/tubesync/local_settings.py.container | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tubesync/tubesync/local_settings.py.container b/tubesync/tubesync/local_settings.py.container index 636d69b..66bc437 100644 --- a/tubesync/tubesync/local_settings.py.container +++ b/tubesync/tubesync/local_settings.py.container @@ -1,6 +1,5 @@ import os from pathlib import Path -from binascii import hexlify BASE_DIR = Path(__file__).resolve().parent.parent @@ -9,8 +8,10 @@ CONFIG_BASE_DIR = ROOT_DIR / 'config' DOWNLOADS_BASE_DIR = ROOT_DIR / 'downloads' -RANDOM_SECRET = hexlify(os.urandom(32)).decode() -SECRET_KEY = str(os.getenv('DJANGO_SECRET_KEY', RANDOM_SECRET)) +# This is not ever meant to be a public web interface so this isn't too critical +SECRET_KEY = str(os.getenv('DJANGO_SECRET_KEY', 'tubesync-django-secret')) + + ALLOWED_HOSTS_STR = str(os.getenv('TUBESYNC_HOSTS', '127.0.0.1,localhost')) ALLOWED_HOSTS = ALLOWED_HOSTS_STR.split(',') DEBUG = True if os.getenv('TUBESYNC_DEBUG', False) else False