aboutsummaryrefslogtreecommitdiff
path: root/instance/production.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-09 23:16:05 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-09 23:16:05 +0100
commit3ab6290d4994b33cdbf831523938cdb18a13bf49 (patch)
tree685980f53aaa3eda4e27ddfc7032554f55528e57 /instance/production.py
parentImproved method to detect current version of the Newspipe instance. (diff)
downloadnewspipe-3ab6290d4994b33cdbf831523938cdb18a13bf49.tar.gz
newspipe-3ab6290d4994b33cdbf831523938cdb18a13bf49.tar.bz2
newspipe-3ab6290d4994b33cdbf831523938cdb18a13bf49.zip
Refactoring the backend.
Diffstat (limited to 'instance/production.py')
-rw-r--r--instance/production.py56
1 files changed, 56 insertions, 0 deletions
diff --git a/instance/production.py b/instance/production.py
new file mode 100644
index 00000000..af2f1c1e
--- /dev/null
+++ b/instance/production.py
@@ -0,0 +1,56 @@
+# [webserver]
+HOST = '127.0.0.1'
+PORT = 5000
+SECRET_KEY = 'a secret only you know'
+DEBUG = False
+TESTING = False
+API_ROOT = "/api/v2.0"
+
+SECRET_KEY = 'LCx3BchmHRxFzkEv4BqQJyeXRLXenf'
+SECURITY_PASSWORD_SALT = 'L8gTsyrpRQEF8jNWQPyvRfv7U5kJkD'
+
+
+# [misc]
+ADMIN_EMAIL = 'admin@admin.localhost'
+SECURITY_PASSWORD_SALT = 'a secret to confirm user account'
+TOKEN_VALIDITY_PERIOD = 3600
+LOG_PATH = './var/newspipe.log'
+NB_WORKER = 5
+DEBUG = False
+TESTING = False
+LOG_LEVEL = 'info'
+SELF_REGISTRATION = True
+
+
+# [database]
+DB_CONFIG_DICT = {
+ '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)
+SQLALCHEMY_TRACK_MODIFICATIONS = False
+
+
+# [crawler]
+CRAWLING_METHOD = 'default'
+DEFAULT_MAX_ERROR = 3
+HTTP_PROXY = ''
+USER_AGENT = 'JARR (https://github.com/JARR/JARR)'
+RESOLVE_ARTICLE_URL = False
+TIMEOUT = 30
+RESOLV = False
+FEED_REFRESH_INTERVAL = 0
+
+
+# [notification]
+MAIL_SERVER = 'localhost'
+MAIL_PORT = 25
+MAIL_USE_TLS = False
+MAIL_USE_SSL = False
+MAIL_DEBUG = DEBUG
+MAIL_USERNAME = None
+MAIL_PASSWORD = None
+MAIL_DEFAULT_SENDER = ADMIN_EMAIL
bgstack15