aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-27 11:17:18 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-27 11:17:18 +0200
commit5c827c1e3dca07408bb6dd0394605ca826431107 (patch)
treed07bbfd58ca643e2eee4815ff824e94ca32de0f9 /conf.py
parentImproved code readability. (diff)
downloadnewspipe-5c827c1e3dca07408bb6dd0394605ca826431107.tar.gz
newspipe-5c827c1e3dca07408bb6dd0394605ca826431107.tar.bz2
newspipe-5c827c1e3dca07408bb6dd0394605ca826431107.zip
Better to send email without Flask-Mail.
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/conf.py b/conf.py
index 4159fb9b..2b57c57c 100644
--- a/conf.py
+++ b/conf.py
@@ -22,7 +22,8 @@ if not ON_HEROKU:
config = confparser.SafeConfigParser()
config.read("./conf/conf.cfg")
- # Whoosh does not work on Heroku
+ PLATFORM_URL = config.get('misc', 'platform_url')
+
WHOOSH_ENABLED = True
SQLALCHEMY_DATABASE_URI = config.get('database', 'uri')
@@ -35,6 +36,7 @@ if not ON_HEROKU:
WEBSERVER_HOST = config.get('webserver', 'host')
WEBSERVER_PORT = int(config.get('webserver', 'port'))
+ ADMIN_EMAIL = config.get('mail', 'admin_email')
MAIL_ENABLED = int(config.get('mail', 'enabled')) == 1
MAIL_HOST = config.get('mail', 'host')
MAIL_PORT = int(config.get('mail', 'port'))
@@ -42,24 +44,24 @@ if not ON_HEROKU:
MAIL_SSL = int(config.get('mail', 'ssl')) == 1
MAIL_USERNAME = config.get('mail', 'username')
MAIL_PASSWORD = config.get('mail', 'password')
- MAIL_FROM = config.get('mail', 'mail_from')
- MAIL_TO = config.get('mail', 'mail_to')
WEBZINE_ROOT = PATH + "/pyaggr3g470r/var/export/"
else:
+ PLATFORM_URL = os.environ.get('PLATFORM_URL', 'https://pyaggr3g470r.herokuapp.com/')
+
+ SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
+
HTTP_PROXY = ""
USER_AGENT = "Mozilla/5.0 (X11; Debian; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0"
RESOLVE_ARTICLE_URL = int(os.environ.get('RESOLVE_ARTICLE_URL', 0)) == 1
WEBSERVER_DEBUG = False
- WEBSERVER_HOST ='0.0.0.0'
+ WEBSERVER_HOST = '0.0.0.0'
WEBSERVER_PORT = int(os.environ.get('PORT', 5000))
MAIL_ENABLED = False
- SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
-
WEBZINE_ROOT = "/tmp/"
bgstack15