aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-02-25 22:00:18 -0500
committerGalen Guyer <galen@galenguyer.com>2021-02-25 22:00:18 -0500
commit07ef35d0892ce652b2421ef2d101c743593ccf46 (patch)
tree30d8b4b8bbb0214ccdd42558c23650c549002948
parent72b07e05e50c2c93d6f195a3ebe15544c4afe171 (diff)
Clean up config and wsgi
-rw-r--r--config.env.py5
-rw-r--r--wsgi.py4
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']))