From 176dee6be25fd96e62bc22bd9a5788eb47d3bc62 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 7 Dec 2015 18:03:11 +0100 Subject: Play with settings file --- cmd/acme/config.go | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'cmd/acme/config.go') 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 { -- cgit v1.2.3