Container Web app with NGINX, best practices

randomrabbit 121 Reputation points
2022-08-12T10:03:07.76+00:00

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?

Thanks!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,935 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Takahito Iwasa 4,851 Reputation points MVP Volunteer Moderator
    2022-08-15T01:58:56.923+00:00

    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.

    https://learn.microsoft.com/en-us/azure/app-service/configure-language-python#container-characteristics

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.