Add secret_key to env, fix docker CMD bug

This commit is contained in:
Reckless_Satoshi 2022-02-10 13:38:56 -08:00
parent 4a16f7debd
commit 27ebf29397
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ MARKET_PRICE_APIS = https://blockchain.info/ticker, https://api.yadio.io/exrates
# Host e.g. robosats.com
HOST_NAME = ''
SECRET_KEY = 'django-insecure-6^&6uw$b5^en%(cu2kc7_o)(mgpazx#j_znwlym0vxfamn2uo-'
# e.g. robotestagw3dcxmd66r4rgksb4nmmr43fh77bzn2ia2eucduyeafnyd.onion
ONION_LOCATION = ''

View File

@ -30,4 +30,4 @@ RUN sed -i 's/^import .*_pb2 as/from . \0/' api/lightning/invoices_pb2_grpc.py
EXPOSE 8000
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000]
CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]

View File

@ -23,7 +23,7 @@ STATIC_URL = '/static/'
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'django-insecure-6^&6uw$b5^en%(cu2kc7_o)(mgpazx#j_znwlym0vxfamn2uo-'
SECRET_KEY = config('SECRET_KEY')
DEBUG = False
STATIC_URL = '/static/'