feat: Implement dns provider type variable for infecting

This commit is contained in:
NaiJi 2023-01-17 17:12:53 +04:00
parent d88d75b9b7
commit f0741188b1

View file

@ -11,6 +11,10 @@ makeConf() {
export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode) export PASSWORD=$(printf $ENCODED_PASSWORD | base64 --decode)
fi fi
if [[ $DNS_PROVIDER_TYPE == null ]]; then
export DNS_PROVIDER_TYPE='CLOUDFLARE'
fi
if [[ $STAGING_ACME == null ]]; then if [[ $STAGING_ACME == null ]]; then
export STAGING_ACME='false' export STAGING_ACME='false'
fi fi
@ -52,7 +56,7 @@ makeConf() {
"location": "sdb" "location": "sdb"
}, },
"dns": { "dns": {
"provider": "CLOUDFLARE", "provider": "$DNS_PROVIDER_TYPE",
"apiKey": "$CF_TOKEN", "apiKey": "$CF_TOKEN",
"useStagingACME": $STAGING_ACME "useStagingACME": $STAGING_ACME
}, },