diff --git a/config.json b/config.json index cb1b519..e04f3ee 100755 --- a/config.json +++ b/config.json @@ -1,13 +1 @@ -{ - "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": "" -} +{"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"} \ No newline at end of file diff --git a/src/frontend/settings.py b/src/frontend/settings.py index 21ccfa7..0cb56e8 100755 --- a/src/frontend/settings.py +++ b/src/frontend/settings.py @@ -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/ # SECURITY WARNING: keep the secret key used in production secret! -# SECRET_KEY = "@(9b9jslgg41u1u=mr)-2*-n2x0vef0zsy39*z@sz18&tvow18" SECRET_KEY = CONFIG.SECRET # SECURITY WARNING: don't run with debug turned on in production! DEBUG = TEMPLATE_DEBUG = False diff --git a/uwsgi.ini b/uwsgi.ini index daab373..de04341 100755 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -1,8 +1,8 @@ [uwsgi] -chdir=/pyshelf/src +chdir=./src/ module=frontend.wsgi master=True pidfile=/tmp/pyShelf.pid vacuum=True socket=/tmp/pyshelf_wsgi.sock -chmod-socket=666 \ No newline at end of file +chmod-socket=666