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
"""
"""
DATABASE URI
determines where to connect to the database
see http://docs.sqlalchemy.org/en/latest/core/engines.html#database-urls for syntax
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
"""
TWITTER CREDENTIALS
get these at apps.twitter.com
blah
"""
2017-08-11 19:13:37 +02:00
# TWITTER_CONSUMER_KEY='vdsvdsvds'
# TWITTER_CONSUMER_SECRET='hjklhjklhjkl'
2017-07-26 11:11:54 +02:00
2017-07-27 00:35:53 +02:00
"""
this will be necessary so we can tell twitter where to redirect
2017-07-27 00:35:53 +02:00
"""
2017-08-11 19:13:37 +02:00
# SERVER_NAME="localhost:5000"
2017-07-27 00:35:53 +02:00
2017-08-11 19:13:37 +02:00
# CELERY_BROKER='redis://'
2017-07-27 20:20:59 +02:00
2017-08-11 19:13:37 +02:00
# HTTPS=True
2017-07-30 14:08:37 +02:00
2017-08-07 13:29:31 +02:00
# SENTRY_DSN='https://foo:bar@sentry.io/69420'
'''
you can set this to memory:// if you only have one web process
or if you don't care about people exhausting your twitter api
key and your celery workers by making hundreds of login
requests and uploading hundreds of bogus tweet archives
docs here <https://flask-limiter.readthedocs.io/en/stable/#configuration>
'''
2017-08-11 19:13:37 +02:00
# RATELIMIT_STORAGE_URL='redis://'
# REDIS=dict(
# db=0
#
# host='localhost'
# port=6379
# # or...
# unix_socket_path='/var/run/redis/redis.sock'
# # see `pydoc redis.StrictRedis.__init__` for full list of arguments
# )
2017-07-26 11:11:54 +02:00
"""
you can also use any config variable that flask expects here, such as
"""
# SESSION_COOKIE_SECURE=True
# DEBUG=True