mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 14:17:19 +00:00
fixed settings and user management.
This commit is contained in:
18
.env.example
18
.env.example
@@ -1 +1,17 @@
|
|||||||
COMIC_BOOK_VOLUME
|
DJANGO_SECRET_KEY = 'Please set me correctly'
|
||||||
|
|
||||||
|
DJANGO_DEBUG = False
|
||||||
|
|
||||||
|
DJANGO_ALLOWED_HOSTS = 'localhost'
|
||||||
|
|
||||||
|
# pip install psycopg2-binary
|
||||||
|
DATABASE_URL = 'postgres://{user}:{password}@{hostname}:{port}/{database-name}'
|
||||||
|
|
||||||
|
# This expects the office winrar unrar command line tool for windows or linux.
|
||||||
|
# Will work without setting if it is in the path
|
||||||
|
# UNRAR_TOOL = 'unrar.exe'
|
||||||
|
|
||||||
|
# for google recaptcha 2
|
||||||
|
# DJANGO_CBREADER_USE_RECAPTCHA = True
|
||||||
|
# DJANGO_RECAPTCHA_PRIVATE_KEY = ''
|
||||||
|
# DJANGO_RECAPTCHA_PUBLIC_KEY = ''
|
||||||
@@ -1,13 +1,5 @@
|
|||||||
"""
|
"""
|
||||||
Django settings for cbreader project.
|
Django settings for cbreader project.
|
||||||
|
|
||||||
Generated by 'django-admin startproject' using Django 1.8.2.
|
|
||||||
|
|
||||||
For more information on this file, see
|
|
||||||
https://docs.djangoproject.com/en/1.8/topics/settings/
|
|
||||||
|
|
||||||
For the full list of settings and their values, see
|
|
||||||
https://docs.djangoproject.com/en/1.8/ref/settings/
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
|
||||||
@@ -22,7 +14,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__fil
|
|||||||
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = "=3tf-@u1t7x4%$yr++59+8tspl4ao&r3&!bb6l(t&$#6@bfkwg"
|
SECRET_KEY = os.environ.get("DJANGO_SECRET_KEY", "9!u#3b@%&vhmh2f89l+tl6r30ce_c&e22bc3l8jx_7#mybxbdq")
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = os.environ.get("DJANGO_DEBUG", True)
|
DEBUG = os.environ.get("DJANGO_DEBUG", True)
|
||||||
@@ -114,10 +106,10 @@ LOGIN_REDIRECT_URL = "/comic/"
|
|||||||
|
|
||||||
LOGIN_URL = "/login/"
|
LOGIN_URL = "/login/"
|
||||||
|
|
||||||
UNRAR_TOOL = os.getenv("UNRAR_TOOL", None)
|
UNRAR_TOOL = os.getenv("DJANGO_UNRAR_TOOL", None)
|
||||||
|
|
||||||
CBREADER_USE_RECAPTCHA = False
|
CBREADER_USE_RECAPTCHA = os.getenv("DJANGO_CBREADER_USE_RECAPTCHA", False)
|
||||||
RECAPTCHA_PRIVATE_KEY = ""
|
RECAPTCHA_PRIVATE_KEY = os.getenv("DJANGO_RECAPTCHA_PRIVATE_KEY", '')
|
||||||
RECAPTCHA_PUBLIC_KEY = ""
|
RECAPTCHA_PUBLIC_KEY = os.getenv("DJANGO_RECAPTCHA_PUBLIC_KEY", '')
|
||||||
|
|
||||||
COMIC_DIR = "/media/comics"
|
COMIC_DIR = "/media/comics"
|
||||||
|
|||||||
Reference in New Issue
Block a user