feat: Add support for staging ACME

testing/digital-ocean
Inex Code 2022-11-16 11:06:15 +03:00
parent ccb337f6d4
commit 389e23a161
1 changed files with 6 additions and 1 deletions

View File

@ -11,6 +11,10 @@ makeConf() {
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
fi
if [[ $STAGING_ACME == null ]]; then
export STAGING_ACME='false'
fi
export ESCAPED_PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode | jq -Rs .)
export HASHED_PASSWORD=$( mkpasswd -m sha-512 "$PASSWORD" )
@ -47,7 +51,8 @@ makeConf() {
},
"dns": {
"provider": "CLOUDFLARE",
"apiKey": "$CF_TOKEN"
"apiKey": "$CF_TOKEN",
"useStagingACME": $STAGING_ACME
},
"server": {
"provider": "DIGITALOCEAN"