This is a tool on linux to help you manage your services.
*On some Linux distributions.
Couple of things:
Don’t run your service as root if you can help it. See: Principle of least privilege. Your Flask API definitely doesn’t need root.
Instead of exposing your Flask server directly (using 0.0.0.0), why don’t you front it with a reverse proxy like nginx?
*On some Linux distributions.
Couple of things:
Don’t run your service as root if you can help it. See: Principle of least privilege. Your Flask API definitely doesn’t need root.
Instead of exposing your Flask server directly (using 0.0.0.0), why don’t you front it with a reverse proxy like nginx?