Container Web app with NGINX, best practices

randomrabbit 121 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 Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,776 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Takahito Iwasa 4,841 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.