2017-07-26 11:11:54 +02:00
|
|
|
"""
|
|
|
|
this is an example config file for Forget
|
|
|
|
|
|
|
|
copy this file to config.py before editing
|
2020-03-11 22:13:32 +01:00
|
|
|
|
|
|
|
lines starting with # demonstrate default or example values
|
|
|
|
the # should be removed before editing
|
2017-07-26 11:11:54 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
"""
|
|
|
|
DATABASE URI
|
|
|
|
|
|
|
|
determines where to connect to the database
|
2019-03-08 00:58:23 +01:00
|
|
|
see <http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls> for syntax
|
2017-07-26 11:11:54 +02:00
|
|
|
only postgresql with psycopg2 driver is officially supported
|
|
|
|
"""
|
2017-08-11 19:13:37 +02:00
|
|
|
# SQLALCHEMY_DATABASE_URI='postgresql+psycopg2:///forget'
|
2017-07-26 11:11:54 +02:00
|
|
|
|
2017-09-07 01:10:02 +02:00
|
|
|
"""
|
|
|
|
REDIS URI
|
|
|
|
|
2019-03-08 00:58:23 +01:00
|
|
|
see <https://redis-py.readthedocs.io/en/latest/#redis.ConnectionPool.from_url>
|
2017-09-07 01:10:02 +02:00
|
|
|
for syntax reference
|
|
|
|
"""
|
|
|
|
# REDIS_URI='redis://'
|
|
|
|
|
2017-07-27 00:35:53 +02:00
|
|
|
"""
|
2019-03-08 00:58:23 +01:00
|
|
|
SERVER ADDRESS
|
|
|
|
|
|
|
|
This is the address at which forget will be reached.
|
|
|
|
External services will redirect to this address when logging in.
|
2017-07-27 00:35:53 +02:00
|
|
|
"""
|
2017-08-11 19:13:37 +02:00
|
|
|
# SERVER_NAME="localhost:5000"
|
2019-03-08 00:58:23 +01:00
|
|
|
# HTTPS=True
|
2017-07-27 00:35:53 +02:00
|
|
|
|
2020-03-11 22:13:32 +01:00
|
|
|
"""
|
|
|
|
TWITTER CREDENTIALS
|
|
|
|
|
|
|
|
Apply for api keys on the developer portal <https://developer.twitter.com/en/apps>
|
|
|
|
When prompted for it, your callback URL is {SERVER_NAME}/login/twitter/callback
|
|
|
|
"""
|
|
|
|
# TWITTER_CONSUMER_KEY='yN3DUNVO0Me63IAQdhTfCA'
|
|
|
|
# TWITTER_CONSUMER_SECRET='c768oTKdzAjIYCmpSNIdZbGaG0t6rOhSFQP0S5uC79g'
|
2017-07-27 20:20:59 +02:00
|
|
|
|
2019-03-08 00:58:23 +01:00
|
|
|
"""
|
|
|
|
SENTRY
|
2017-07-30 14:08:37 +02:00
|
|
|
|
2019-03-08 00:58:23 +01:00
|
|
|
If you want to send exceptions to sentry, enter your sentry DSN here
|
|
|
|
"""
|
|
|
|
# SENTRY_DSN=
|
2017-08-07 13:29:31 +02:00
|
|
|
|
2017-07-26 11:11:54 +02:00
|
|
|
"""
|
2019-03-08 00:58:23 +01:00
|
|
|
ADVANCED FLASK CONFIG
|
|
|
|
|
|
|
|
you can also use any config variable that flask expects here
|
|
|
|
A list of these config variables is available here:
|
|
|
|
<http://flask.pocoo.org/docs/1.0/config/#builtin-configuration-values>
|
2017-07-26 11:11:54 +02:00
|
|
|
"""
|
|
|
|
# SESSION_COOKIE_SECURE=True
|
|
|
|
# DEBUG=True
|