Browse Source

Add the ability to set DNS API configuration at domain level

ACME-DNS provide credentials for each domain. Each credential is allowed to
update only its subdomain record.
pull/752/head
atisne 4 years ago
parent
commit
98256ab5c1
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      dns_scripts/dns_add_acmedns
  2. +1
    -1
      getssl

+ 5
- 0
dns_scripts/dns_add_acmedns View File

@ -1,4 +1,9 @@
#!/usr/bin/env bash
# ACMEDNS env variables can be set in a config file at domain level
acme_config="$DOMAIN_DIR/acme-dns.cfg"
[ -s "$acme_config" ] && . "$acme_config"
# Need to add your API user and key below or set as env variable
apiuser=${ACMEDNS_API_USER:-''}
apikey=${ACMEDNS_API_KEY:-''}


+ 1
- 1
getssl View File

@ -2980,7 +2980,7 @@ fi
# Define defaults for variables not set in the main config.
ACCOUNT_KEY="${ACCOUNT_KEY:=$WORKING_DIR/account.key}"
DOMAIN_STORAGE="${DOMAIN_STORAGE:=$WORKING_DIR}"
DOMAIN_DIR="$DOMAIN_STORAGE/$DOMAIN"
export DOMAIN_DIR="$DOMAIN_STORAGE/$DOMAIN"
CERT_FILE="$DOMAIN_DIR/${DOMAIN}.crt"
FULL_CHAIN="$DOMAIN_DIR/fullchain.crt"
CA_CERT="$DOMAIN_DIR/chain.crt"


Loading…
Cancel
Save