forget-cancellare-vecchi-toot/config.example.py

61 lines
1.4 KiB
Python
Raw Normal View History

2017-07-26 11:11:54 +02:00
"""
this is an example config file for Forget
copy this file to config.py before editing
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
"""
REDIS URI
2019-03-08 00:58:23 +01:00
see <https://redis-py.readthedocs.io/en/latest/#redis.ConnectionPool.from_url>
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
"""
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