""" Default configuration settings and environment variable based configuration logic See the readme for more information """ from os import environ import secrets # Flask config DEBUG = False IP = environ.get('POLLER_IP', 'localhost') PORT = environ.get('POLLER_PORT', '8000') PROTOCOL = environ.get('POLLER_PROTOCOL', 'http://') SECRET_KEY = environ.get('POLLER_SECRET_KEY', default=''.join(secrets.token_hex(16))) # SQLAlchemy config SQLALCHEMY_DATABASE_URI = environ.get('POLLER_DATABASE_URI', 'sqlite:////tmp/rit-covid-poller.db') SQLALCHEMY_TRACK_MODIFICATIONS = False