aboutsummaryrefslogtreecommitdiff
path: root/instance/production.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 11:27:21 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 11:27:21 +0100
commita4567a30aea2278957ee4f887360d078ff6ad5c5 (patch)
tree1767877bfc5aab95c7a3987156cb0d950552b683 /instance/production.py
parentAdded a tiny portion of black magic. (diff)
downloadnewspipe-a4567a30aea2278957ee4f887360d078ff6ad5c5.tar.gz
newspipe-a4567a30aea2278957ee4f887360d078ff6ad5c5.tar.bz2
newspipe-a4567a30aea2278957ee4f887360d078ff6ad5c5.zip
Removed useless configuration variables.
Diffstat (limited to 'instance/production.py')
-rw-r--r--instance/production.py37
1 files changed, 15 insertions, 22 deletions
diff --git a/instance/production.py b/instance/production.py
index 487c9cbe..76b0bcb6 100644
--- a/instance/production.py
+++ b/instance/production.py
@@ -1,24 +1,13 @@
-# webserver
+# Webserver
HOST = "127.0.0.1"
PORT = 5000
DEBUG = False
-TESTING = False
API_ROOT = "/api/v2.0"
SECRET_KEY = "LCx3BchmHRxFzkEv4BqQJyeXRLXenf"
SECURITY_PASSWORD_SALT = "L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD"
-
-# misc
-ADMIN_EMAIL = "admin@admin.localhost"
-TOKEN_VALIDITY_PERIOD = 3600
-LOG_LEVEL = "info"
-LOG_PATH = "./var/newspipe.log"
-NB_WORKER = 5
-SELF_REGISTRATION = True
-
-
-# database
+# Database
DB_CONFIG_DICT = {
"user": "user",
"password": "password",
@@ -29,21 +18,18 @@ DATABASE_NAME = "newspipe"
SQLALCHEMY_DATABASE_URI = "postgres://{user}:{password}@{host}:{port}/{name}".format(
name=DATABASE_NAME, **DB_CONFIG_DICT
)
-SQLALCHEMY_TRACK_MODIFICATIONS = False
-
-# crawler
+# Crawler
CRAWLING_METHOD = "default"
DEFAULT_MAX_ERROR = 3
HTTP_PROXY = ""
-USER_AGENT = "Newspipe (https://git.sr.ht/~cedric/newspipe)"
+CRAWLER_USER_AGENT = "Newspipe (https://git.sr.ht/~cedric/newspipe)"
+CRAWLER_TIMEOUT = 5
+CRAWLER_RESOLV = False
RESOLVE_ARTICLE_URL = False
-TIMEOUT = 30
-RESOLV = False
-FEED_REFRESH_INTERVAL = 0
-
+FEED_REFRESH_INTERVAL = 100
-# notification
+# Notification
MAIL_SERVER = "localhost"
MAIL_PORT = 25
MAIL_USE_TLS = False
@@ -52,3 +38,10 @@ MAIL_DEBUG = DEBUG
MAIL_USERNAME = None
MAIL_PASSWORD = None
MAIL_DEFAULT_SENDER = ADMIN_EMAIL
+
+# Misc
+ADMIN_EMAIL = "admin@admin.localhost"
+TOKEN_VALIDITY_PERIOD = 3600
+LOG_LEVEL = "info"
+LOG_PATH = "./var/newspipe.log"
+SELF_REGISTRATION = True
bgstack15