make our backend accessible only from where its running
This commit is contained in:
@@ -417,4 +417,5 @@ if __name__ == '__main__':
|
|||||||
level=os.environ.get('LOG_LEVEL', log.INFO),
|
level=os.environ.get('LOG_LEVEL', log.INFO),
|
||||||
format='%(module)s.py:%(lineno)d %(levelname)s: %(message)s'
|
format='%(module)s.py:%(lineno)d %(levelname)s: %(message)s'
|
||||||
)
|
)
|
||||||
uvicorn.run(app, host="0.0.0.0", port=5000)
|
# Bind to localhost only for security: prevents network access, only frontend on same machine can connect
|
||||||
|
uvicorn.run(app, host="127.0.0.1", port=5000)
|
||||||
Reference in New Issue
Block a user