Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions armor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion website/content/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down Expand Up @@ -111,4 +112,4 @@ hosts:
- name: proxy
targets:
- url: http://forum
```
```