We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f0063 commit 006faafCopy full SHA for 006faaf
app.py
@@ -22,6 +22,7 @@
22
else:
23
app.config.from_object(app_config.DevConfig)
24
25
+DEFAULT_HOST = app.config.get("DEFAULT_HOST")
26
PORT = int(app.config.get("DEFAULT_PORT"))
27
ORIGINS = app.config.get("ORIGINS")
28
SSL = app.config.get("SSL")
@@ -50,4 +51,4 @@ def return_error():
50
51
# ''' Main '''
52
if __name__ == "__main__":
53
print(f"Python is running in {FLASK_DEBUG} mode")
- app.run(debug=FLASK_DEBUG, host="0.0.0.0", port=PORT, ssl_context=SSL)
54
+ app.run(debug=FLASK_DEBUG, host=DEFAULT_HOST, port=PORT, ssl_context=SSL)
0 commit comments