From 4ec65da982e8a306df2fa2a0c96e6aaa03a61839 Mon Sep 17 00:00:00 2001 From: Derrick Burns Date: Fri, 5 Apr 2019 19:08:30 -0700 Subject: [PATCH] Optionally provide MailChimp api key from env variable. --- shoreline.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shoreline.go b/shoreline.go index 40133e93..a0adb5b5 100644 --- a/shoreline.go +++ b/shoreline.go @@ -52,6 +52,11 @@ func main() { config.User.Secret = userSecret } + mailchimpAPIKey, found := os.LookupEnv("MAILCHIMP_APIKEY") + if found { + config.User.Mailchimp.APIKey = mailchimpAPIKey + } + /* * Hakken setup */