From 07ef35d0892ce652b2421ef2d101c743593ccf46 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Thu, 25 Feb 2021 22:00:18 -0500 Subject: Clean up config and wsgi --- config.env.py | 5 +++-- 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') diff --git a/wsgi.py b/wsgi.py index 31fc3f5..cd51ea3 100644 --- a/wsgi.py +++ b/wsgi.py @@ -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'])) -- cgit v1.2.3