diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-09 23:19:33 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-09 23:19:33 +0100 |
commit | f285fd2b0e8f709a958540df46f91ea99da16aaa (patch) | |
tree | 207c1db6a3bfff8476c5a81113f852e3c709a08f /instance | |
parent | Refactoring the backend. (diff) | |
download | newspipe-f285fd2b0e8f709a958540df46f91ea99da16aaa.tar.gz newspipe-f285fd2b0e8f709a958540df46f91ea99da16aaa.tar.bz2 newspipe-f285fd2b0e8f709a958540df46f91ea99da16aaa.zip |
Updated defautl configuration file.
Diffstat (limited to 'instance')
-rw-r--r-- | instance/production.py | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/instance/production.py b/instance/production.py index af2f1c1e..c25ea116 100644 --- a/instance/production.py +++ b/instance/production.py @@ -1,7 +1,6 @@ -# [webserver] +# webserver HOST = '127.0.0.1' PORT = 5000 -SECRET_KEY = 'a secret only you know' DEBUG = False TESTING = False API_ROOT = "/api/v2.0" @@ -10,19 +9,16 @@ SECRET_KEY = 'LCx3BchmHRxFzkEv4BqQJyeXRLXenf' SECURITY_PASSWORD_SALT = 'L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD' -# [misc] +# misc ADMIN_EMAIL = 'admin@admin.localhost' -SECURITY_PASSWORD_SALT = 'a secret to confirm user account' TOKEN_VALIDITY_PERIOD = 3600 +LOG_LEVEL = 'info' LOG_PATH = './var/newspipe.log' NB_WORKER = 5 -DEBUG = False -TESTING = False -LOG_LEVEL = 'info' SELF_REGISTRATION = True -# [database] +# database DB_CONFIG_DICT = { 'user': 'user', 'password': 'password', @@ -34,18 +30,18 @@ SQLALCHEMY_DATABASE_URI = 'postgres://{user}:{password}@{host}:{port}/{name}'.fo SQLALCHEMY_TRACK_MODIFICATIONS = False -# [crawler] +# crawler CRAWLING_METHOD = 'default' DEFAULT_MAX_ERROR = 3 HTTP_PROXY = '' -USER_AGENT = 'JARR (https://github.com/JARR/JARR)' +USER_AGENT = 'Newspipe (https://git.sr.ht/~cedric/newspipe)' RESOLVE_ARTICLE_URL = False TIMEOUT = 30 RESOLV = False FEED_REFRESH_INTERVAL = 0 -# [notification] +# notification MAIL_SERVER = 'localhost' MAIL_PORT = 25 MAIL_USE_TLS = False |