duan35557593 2018-11-27 16:18
浏览 61
已采纳

通过DNS对多个子域和IP地址使用autocert

I have two separate servers using the same domain name with separate prefixes, one doing some app stuff and one doing filesharing. Using the autocert package how can I just configure the cert manager to produce a certificate that I can use on both servers?

  • 写回答

1条回答 默认 最新

  • douzhao4071 2018-11-27 16:20
    关注

    Add both domains to the cert manager white list:

    certManager := autocert.Manager{
                Prompt:     autocert.AcceptTOS,
                HostPolicy: autocert.HostWhitelist("domain.me", "filesharing.domain.me"), //Your domain here
                Cache:      autocert.DirCache("certs"),             //Folder for storing certificates
            }
    

    and add two A records to the DNS: dns setup

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?