aboutsummaryrefslogtreecommitdiff
path: root/instance/production.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 10:34:00 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-10 10:34:00 +0100
commit677304ba3ecbd204fa2726e6820de84ad09bd868 (patch)
treebd19fbf2f1a0cddad1980fe15cf4c228867c5d69 /instance/production.py
parentUpdated README. (diff)
downloadnewspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.tar.gz
newspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.tar.bz2
newspipe-677304ba3ecbd204fa2726e6820de84ad09bd868.zip
Added a tiny portion of black magic.
Diffstat (limited to 'instance/production.py')
-rw-r--r--instance/production.py34
1 files changed, 18 insertions, 16 deletions
diff --git a/instance/production.py b/instance/production.py
index c25ea116..487c9cbe 100644
--- a/instance/production.py
+++ b/instance/production.py
@@ -1,40 +1,42 @@
# webserver
-HOST = '127.0.0.1'
+HOST = "127.0.0.1"
PORT = 5000
DEBUG = False
TESTING = False
API_ROOT = "/api/v2.0"
-SECRET_KEY = 'LCx3BchmHRxFzkEv4BqQJyeXRLXenf'
-SECURITY_PASSWORD_SALT = 'L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD'
+SECRET_KEY = "LCx3BchmHRxFzkEv4BqQJyeXRLXenf"
+SECURITY_PASSWORD_SALT = "L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD"
# misc
-ADMIN_EMAIL = 'admin@admin.localhost'
+ADMIN_EMAIL = "admin@admin.localhost"
TOKEN_VALIDITY_PERIOD = 3600
-LOG_LEVEL = 'info'
-LOG_PATH = './var/newspipe.log'
+LOG_LEVEL = "info"
+LOG_PATH = "./var/newspipe.log"
NB_WORKER = 5
SELF_REGISTRATION = True
# database
DB_CONFIG_DICT = {
- 'user': 'user',
- 'password': 'password',
- 'host': 'localhost',
- 'port': 5432
+ "user": "user",
+ "password": "password",
+ "host": "localhost",
+ "port": 5432,
}
-DATABASE_NAME = 'newspipe'
-SQLALCHEMY_DATABASE_URI = 'postgres://{user}:{password}@{host}:{port}/{name}'.format(name=DATABASE_NAME, **DB_CONFIG_DICT)
+DATABASE_NAME = "newspipe"
+SQLALCHEMY_DATABASE_URI = "postgres://{user}:{password}@{host}:{port}/{name}".format(
+ name=DATABASE_NAME, **DB_CONFIG_DICT
+)
SQLALCHEMY_TRACK_MODIFICATIONS = False
# crawler
-CRAWLING_METHOD = 'default'
+CRAWLING_METHOD = "default"
DEFAULT_MAX_ERROR = 3
-HTTP_PROXY = ''
-USER_AGENT = 'Newspipe (https://git.sr.ht/~cedric/newspipe)'
+HTTP_PROXY = ""
+USER_AGENT = "Newspipe (https://git.sr.ht/~cedric/newspipe)"
RESOLVE_ARTICLE_URL = False
TIMEOUT = 30
RESOLV = False
@@ -42,7 +44,7 @@ FEED_REFRESH_INTERVAL = 0
# notification
-MAIL_SERVER = 'localhost'
+MAIL_SERVER = "localhost"
MAIL_PORT = 25
MAIL_USE_TLS = False
MAIL_USE_SSL = False
bgstack15