mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Adjusted settings for release
This commit is contained in:
14
config.json
14
config.json
@@ -1,13 +1 @@
|
|||||||
{
|
{"TITLE": "pyShelf E-Book Server", "VERSION": "0.6.0", "BOOKPATH": "~/Books", "DB_HOST": "localhost", "DB_PORT": "5432", "DATABASE": "pyshelf", "USER": "pyshelf", "PASSWORD": "pyshelf", "BOOKSHELF": "data/shelf.json", "ALLOWED_HOSTS": "*", "SECRET": "br%dhz^n8_bq%l8cjj-k%6!cf-@hlsnj=oan^s)x6rtg!tx$wl"}
|
||||||
"TITLE": "pyShelf E-Book Server",
|
|
||||||
"VERSION": "0.6.0",
|
|
||||||
"BOOKPATH": "/books",
|
|
||||||
"DB_HOST": "db",
|
|
||||||
"DB_PORT": "5432",
|
|
||||||
"DATABASE": "pyshelf",
|
|
||||||
"USER": "pyshelf",
|
|
||||||
"PASSWORD": "pyshelf",
|
|
||||||
"BOOKSHELF": "data/shelf.json",
|
|
||||||
"ALLOWED_HOSTS": "*",
|
|
||||||
"SECRET": ""
|
|
||||||
}
|
|
||||||
@@ -30,7 +30,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|||||||
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/2.2/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 = "@(9b9jslgg41u1u=mr)-2*-n2x0vef0zsy39*z@sz18&tvow18"
|
|
||||||
SECRET_KEY = CONFIG.SECRET
|
SECRET_KEY = CONFIG.SECRET
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = TEMPLATE_DEBUG = False
|
DEBUG = TEMPLATE_DEBUG = False
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
[uwsgi]
|
[uwsgi]
|
||||||
chdir=/pyshelf/src
|
chdir=./src/
|
||||||
module=frontend.wsgi
|
module=frontend.wsgi
|
||||||
master=True
|
master=True
|
||||||
pidfile=/tmp/pyShelf.pid
|
pidfile=/tmp/pyShelf.pid
|
||||||
vacuum=True
|
vacuum=True
|
||||||
socket=/tmp/pyshelf_wsgi.sock
|
socket=/tmp/pyshelf_wsgi.sock
|
||||||
chmod-socket=666
|
chmod-socket=666
|
||||||
|
|||||||
Reference in New Issue
Block a user