A proxy for adding members to a MailChimp list.
Exposes a /subscribers
endpoint that you can POST
to with a body like {"email": "newsubscriber@yourwebsite.io"}
.
This proxy is available as a standalone docker image.
MailChimp data can be set via environmental varables:
Key | Description |
---|---|
ALLOWED_ORIGINS | Comma-separated origins allowed. |
MAILCHIMP_API_TOKEN | Your MailChimp API Token. |
MAILCHIMP_DATA_CENTER | Your MailChimp Data Center. |
MAILCHIMP_LIST_ID | The MailChimp list to subscribe new emails to. |
From the repo's root:
docker build -t urbint/mailchimp_proxy .
docker tag urbint/mailchimp_proxy urbint/mailchimp_proxy:1.0
# log into docker hub via `docker login` if you haven't already
docker push urbint/mailchimp_proxy:1.0