aboutsummaryrefslogtreecommitdiff
path: root/cmd/acme/config.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-07 18:03:11 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-07 18:03:11 +0100
commit176dee6be25fd96e62bc22bd9a5788eb47d3bc62 (patch)
tree5dc487f11f16750ae1a9b237abb2ca52ad8828fc /cmd/acme/config.go
parentbd0dda551aadd3eddcab32411275c28efd1e2940 (diff)
Play with settings file
Diffstat (limited to 'cmd/acme/config.go')
-rw-r--r--cmd/acme/config.go24
1 files changed, 16 insertions, 8 deletions
diff --git a/cmd/acme/config.go b/cmd/acme/config.go
index 46305d6..cbde37a 100644
--- a/cmd/acme/config.go
+++ b/cmd/acme/config.go
@@ -7,9 +7,14 @@ import (
)
type Config struct {
- Account []Account
- Want []Want
- Hook []Hook
+ Provider map[string]Provider
+ Account map[string]Account
+ Desire map[string]Desire
+ Hook map[string]Hook
+}
+
+type Provider struct {
+ Directory string
}
type Account struct {
@@ -18,11 +23,14 @@ type Account struct {
Provider string
}
-type Want struct {
- Domains []string
- Cert string
- Key string
- Webroot string
+type Desire struct {
+ Altnames []string
+ Key string
+ Cert string
+ Webroot string
+ Account string
+ Gracetime string
+ Hook string
}
type Hook struct {