aofei/air

Need Configuration Variable for Email in autocert.Manager{}

SaulDoesCode opened this issue · 2 comments

air/server.go

Line 64 in e62e9ff

Cache: autocert.DirCache(ACMECertRoot),

acm := autocert.Manager{
    Prompt: autocert.AcceptTOS,
    Cache:  autocert.DirCache(ACMECertRoot),
}

if MaintainerEmail != "" {
  acm.Email = MaintainerEmail
}

In the TOML maybe allow users to add maintainer_email

aofei commented

Sounds great, can you submit a PR? Thanks~

aofei commented

Thanks for the #11~