Skip to content

Commit

Permalink
add dnspod email configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
timeswind committed Oct 29, 2023
1 parent 82f0eff commit 4028cb7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const stack = new cdk.Stack(app, 'lambda-certbot-dev', { env: devEnv });
new CertbotDnsDnspodJob(stack, 'Demo', {
certbotOptions: {
domainName: '*.example.com',
email: 'user@example.com',
email: 'user@example.com', // <- your email address and at same time is your dnspod account associate email.
},
dnsDnspodApiId: 'xxx',
dnsDnspodApiToken: 'xxx',
Expand Down
4 changes: 2 additions & 2 deletions docker.d/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ MAIL=$EMAIL
echo "start to renew cert from dnspod"

# create credentials.ini in /tmp directory
echo "dns_dnspod_api_id = $DNS_DNSPOD_API_ID" > /tmp/credentials.ini
echo "dns_dnspod_api_token = $DNS_DNSPOD_API_TOKEN" >> /tmp/credentials.ini
echo "dns_dnspod_email = $EMAIL" > /tmp/credentials.ini
echo "dns_dnspod_api_token = $dns_dnspod_api_id,$DNS_DNSPOD_API_TOKEN" >> /tmp/credentials.ini

chmod 600 /tmp/credentials.ini

Expand Down
4 changes: 2 additions & 2 deletions docker.d/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ MAIL=$EMAIL
echo "start to renew cert from dnspod"

# create credentials.ini in /tmp directory
echo "dns_dnspod_api_id = $DNS_DNSPOD_API_ID" > /tmp/credentials.ini
echo "dns_dnspod_api_token = $DNS_DNSPOD_API_TOKEN" >> /tmp/credentials.ini
echo "dns_dnspod_email = $EMAIL" > /tmp/credentials.ini
echo "dns_dnspod_api_token = $dns_dnspod_api_id,$DNS_DNSPOD_API_TOKEN" >> /tmp/credentials.ini

chmod 600 /tmp/credentials.ini

Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface CertbotOptions {
readonly domainName: string;

/**
* Email address for important account notifications.
* Email address associate with DNSPod account and for important account notifications.
*/
readonly email: string;

Expand Down

0 comments on commit 4028cb7

Please sign in to comment.