Container Web app with NGINX, best practices

randomrabbit 116 Reputation points

I'm deploying a web server (Flask+Gunicorn) in a container to Azure app services. I also need NGINX. Should I include that in my web app? Or are web apps automatically behind a configurable NGINX?


Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,544 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Takahito Iwasa 4,621 Reputation points MVP

    Hi, @randomrabbit

    In Python Runtime of App Service Linux, Gunicorn is placed behind Nginx and Flask is installed as standard.
    Please refer to the following.

    You should try to install the application using this first.
    You can also customize the middleware by calling a custom script that initializes the middleware settings during the App Service startup process.

    You can try this out and try a custom container if you need more flexibility.