diff --git a/armor.go b/armor.go index af790bc..04e3dc4 100644 --- a/armor.go +++ b/armor.go @@ -30,6 +30,7 @@ type ( KeyFile string `yaml:"key_file"` Auto bool `yaml:"auto"` CacheDir string `yaml:"cache_dir"` + Email string `yaml:"email"` } Host struct { diff --git a/http/http.go b/http/http.go index 24991f1..ab93aa2 100644 --- a/http/http.go +++ b/http/http.go @@ -25,6 +25,9 @@ type ( func Init(a *armor.Armor) (h *HTTP) { e := echo.New() + // To get some info, when cert expire for example + e.AutoTLSManager.Email = a.TLS.Email + a.Echo = e h = &HTTP{ armor: a, diff --git a/website/content/guide/configuration.md b/website/content/guide/configuration.md index 38b8e34..399b3e0 100644 --- a/website/content/guide/configuration.md +++ b/website/content/guide/configuration.md @@ -27,6 +27,7 @@ Name | Type | Description `key_file` | string | Key file `auto` | bool | Enable automatic certificates from https://letsencrypt.org `cache_dir` | string | Cache directory to store certificates from https://letsencrypt.org. Default value `~/.armor/cache`. +`email` | string | Email optionally specifies a contact email address. `hosts` @@ -111,4 +112,4 @@ hosts: - name: proxy targets: - url: http://forum -``` \ No newline at end of file +```