Skip to content

Commit b8456a4

Browse files
authored
Merge pull request #31 from alexandreStein/master
Add "email" parramiter to Armor config
2 parents 5867db0 + f1ee630 commit b8456a4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

armor.go

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type (
3030
KeyFile string `yaml:"key_file"`
3131
Auto bool `yaml:"auto"`
3232
CacheDir string `yaml:"cache_dir"`
33+
Email string `yaml:"email"`
3334
}
3435

3536
Host struct {

http/http.go

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ type (
2525

2626
func Init(a *armor.Armor) (h *HTTP) {
2727
e := echo.New()
28+
// To get some info, when cert expire for example
29+
e.AutoTLSManager.Email = a.TLS.Email
30+
2831
a.Echo = e
2932
h = &HTTP{
3033
armor: a,

website/content/guide/configuration.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Name | Type | Description
2727
`key_file` | string | Key file
2828
`auto` | bool | Enable automatic certificates from https://letsencrypt.org
2929
`cache_dir` | string | Cache directory to store certificates from https://letsencrypt.org. Default value `~/.armor/cache`.
30+
`email` | string | Email optionally specifies a contact email address.
3031

3132
`hosts`
3233

@@ -111,4 +112,4 @@ hosts:
111112
- name: proxy
112113
targets:
113114
- url: http://forum
114-
```
115+
```

0 commit comments

Comments
 (0)