How to change listener from localhost to interface
lumberjackla opened this issue · 1 comments
Hi,
first, I really like what you built and it works well in my tests.
But I would like to know what parameter to change in which file to have the service no longer only accepting requests on 127.0.0.1.
In your screenshot you use the interface IP and I would need that as well to access the REST from external.
Thanks
It's up to you where you deploy/run the native Python app; and maybe put an appropriate proxy (Nginx, etc.) in front.
If you want to change the host, you could add the according param to the run()
method here:
Line 309 in addea2e
Check the Flask documentation for details.
When using the app in containerized form you can simply build the container via the Dockerfile, and run/deploy it anywhere you like (Docker, Kubernetes, etc.). The internal port is 5000
.