问题描述
我正在使用 Docker 容器在 PowerShell 运行时本地测试 Azure Functions。当我使用 func start -p 8080 --useHttps
时。我能够生成 URL https://localhost:8080/api/HttpExample
但是当使用 docker run -p 8080:443 azurefunctionsimage:v1.0.0
时。我可以看到只为 HTTP 而不是 HTTPS
请指导我如何使用 Docker Container 在 HTTPS 上运行这个 azure 函数。
参考网址:
我对 ASP.net 也不熟悉,但此链接能帮助我实现这一目标吗?
解决方法
正如 Charles Xu
在他的评论中所说:You need to enable the HTTPS in the image with the Web Server,such as the IIS.
。