diff options
author | Galen Guyer <galen@galenguyer.com> | 2021-02-25 22:00:18 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2021-02-25 22:00:18 -0500 |
commit | 07ef35d0892ce652b2421ef2d101c743593ccf46 (patch) | |
tree | 30d8b4b8bbb0214ccdd42558c23650c549002948 | |
parent | 72b07e05e50c2c93d6f195a3ebe15544c4afe171 (diff) |
Clean up config and wsgi
-rw-r--r-- | config.env.py | 5 | ||||
-rw-r--r-- | wsgi.py | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/config.env.py b/config.env.py index 8334eeb..5241003 100644 --- a/config.env.py +++ b/config.env.py @@ -9,9 +9,10 @@ import secrets # Flask config DEBUG = False IP = environ.get('POLLER_IP', 'localhost') -PORT = environ.get('POLLER_PORT', '8000') -PROTOCOL = environ.get('POLLER_PROTOCOL', 'http://') +PORT = environ.get('POLLER_PORT', '5000') SECRET_KEY = environ.get('POLLER_SECRET_KEY', default=''.join(secrets.token_hex(16))) +LOG_LEVEL = environ.get('PACKET_LOG_LEVEL', 'INFO') +VERSION = '0.1.0' # SQLAlchemy config SQLALCHEMY_DATABASE_URI = environ.get('POLLER_DATABASE_URI', 'sqlite:////tmp/rit-covid-poller.db') @@ -4,5 +4,5 @@ Primary entry point for the app from poller import APP -if __name__ == "__main__": - APP.run(host=APP.config["IP"], port=int(APP.config["PORT"])) +if __name__ == '__main__': + APP.run(host=APP.config['IP'], port=int(APP.config['PORT'])) |