Docker编写多个SSL虚拟主机

问题描述 投票:0回答:1

我在docker-compose v3上使用了Let's Encrypt伴侣。我有多个主机使用SSL。在我的Nginx容器上,我公开了:

  - VIRTUAL_HOST=api.example.com,service.example.com
  - LETSENCRYPT_HOST=api.example.com,service.example.com
  - [email protected]

此设置工作正常,但如果我在service.example.com上读取SSL证书详细信息,我会将其命名为api.example.com。这是预期的行为还是我能以某种方式修复它?非常感谢。

docker nginx docker-compose ssl-certificate lets-encrypt
1个回答
0
投票

好吧,这似乎是SAN(主题备用名称)证书的预期行为。 Here github讨论。

© www.soinside.com 2019 - 2024. All rights reserved.