microsoft / azurechat

🤖 💼 Azure Chat Solution Accelerator powered by Azure Open AI Service
MIT License
1.15k stars 958 forks source link

Updated dockerfile with options for including your own root certificate and deploying your container to an Azure App Service. #269

Open jcbartle opened 7 months ago

jcbartle commented 7 months ago

While deploying this privately, I encountered a few issues which caused some significant trouble. Two of these are addressed by updating the dockerfile, and I hope this PR can save others some time and headaches.

My modifications are commented out by default and are opt-in configuration decisions.

Using a Proxy / SWG / etc. which intercepts SSL

This scenario requires uploading your own root certificate to the container and configuring Node to trust it. This modification was based on this Stack Overflow conversation.

Custom Container + Azure App Service

Our solution used the above custom container deployed to an Azure App Service via an Azure Container Registry. The container would continually get shut down due to failing to respond to HTTP ping requests. Based on this somewhat related tutorial, I tried switching the HOSTNAME environment variable value to 0.0.0.0. This instantly solved the problem.