Read test host from env variable

Signed-off-by: Max Ehrlich <max.ehr@gmail.com>
This commit is contained in:
Max Ehrlich 2018-08-03 12:23:36 -04:00
parent 80a9e7bf03
commit 240828b272
No known key found for this signature in database
GPG Key ID: 439AC62D3C8A495A

View File

@ -16,6 +16,7 @@ var (
func init() {
acmednsHost = os.Getenv("ACME_DNS_HOST")
acmednsAccountsJson = []byte(os.Getenv("ACME_DNS_ACCOUNTS_JSON"))
acmednsDomain = os.Getenv("ACME_DNS_DOMAIN")
if len(acmednsHost) > 0 && len(acmednsAccountsJson) > 0 {
acmednsLiveTest = true
}