I just did a Google PageSpeed Insights test on a website that is hosted on an Azure Service Linux using a Docker Container.
The result was not good, the primary thing it complained about is that none of the requests are gzipped.
I searched a bit and found no details on how to enable this for a container service. Answers such as this one only pertain to a regular website with a web.config, which I dont have. Enabling gzip compression on Azure App Service
I found that I can enable this in asp net core (what I'm hosting in my container) using this. But I would prefer if the hosting server did it as I'm sure that would be more performant. Which is also what the documentation says on that page.
Use server-based response compression technologies in IIS, Apache, or Nginx. The performance of the middleware probably won't match that of the server modules.
So, how do I enable Gzip compression in an App Service using Containers running on Linux?