aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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']))