4ch1m/pixoo-rest

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

4ch1m commented

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:

app.run()

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.