Skip to content

Commit

Permalink
Optionally provide MailChimp api key from env variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickburns committed Apr 6, 2019
1 parent cf80b72 commit 4ec65da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions shoreline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit 4ec65da

Please sign in to comment.