将两个域添加到证书管理器白名单: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
}并在 DNS 中添加两条 A 记录: