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