aboutsummaryrefslogtreecommitdiff
path: root/src/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.py')
-rw-r--r--src/conf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/conf.py b/src/conf.py
index 0fcb330e..f30b5701 100644
--- a/src/conf.py
+++ b/src/conf.py
@@ -9,6 +9,7 @@ import logging
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
PATH = os.path.abspath(".")
+API_ROOT = '/api/v2.0'
# available languages
LANGUAGES = {
@@ -23,6 +24,7 @@ TIME_ZONE = {
ON_HEROKU = int(os.environ.get('HEROKU', 0)) == 1
DEFAULTS = {"platform_url": "https://jarr.herokuapp.com/",
+ "self_registration": "false",
"cdn_address": "",
"admin_email": "root@jarr.localhost",
"postmark_api_key": "",
@@ -45,7 +47,7 @@ DEFAULTS = {"platform_url": "https://jarr.herokuapp.com/",
"host": "0.0.0.0",
"port": "5000",
"crawling_method": "classic",
- "webzine_root": "/tmp",
+ "webzine_root": "~/tmp",
}
if not ON_HEROKU:
@@ -76,6 +78,7 @@ else:
PLATFORM_URL = config.get('misc', 'platform_url')
ADMIN_EMAIL = config.get('misc', 'admin_email')
+SELF_REGISTRATION = config.getboolean('misc', 'self_registration')
RECAPTCHA_PUBLIC_KEY = config.get('misc', 'recaptcha_public_key')
RECAPTCHA_PRIVATE_KEY = config.get('misc',
'recaptcha_private_key')
bgstack15